alpacalyzer-algo-trader: Skill for Claude Code

.agents/skills/technical-indicator/SKILL.md

technical-indicator is a skill for Claude Code, Codex from kimrejstrom/alpacalyzer-algo-trader. It costs 35 tokens per session (505 once invoked), scanned A, original, MIT.

A development guide for adding a new technical indicator, such as Bollinger Bands, Stochastic, or ATR, to a Python trading-analysis project.

In plain words
What is it for?
Use it when adding an indicator to TechnicalAnalyzer, choosing pandas-ta or custom pandas/NumPy calculations, and writing its tests.
Why use it?
It defines where the calculation and tests belong and how to handle missing market data or insufficient history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is kimrejstrom/alpacalyzer-algo-trader's own configuration. It tells Claude Code and Codex how to work on alpacalyzer-algo-trader itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything alpacalyzer-algo-trader configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kimrejstrom/alpacalyzer-algo-trader. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kimrejstrom/alpacalyzer-algo-trader/main/.agents/skills/technical-indicator/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kimrejstrom/alpacalyzer-algo-trader

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for technical-indicator

README.md
[![agentmods](https://agentmods.dev/badge/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator/github.svg)](https://agentmods.dev/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator)
Your own site
<a href="https://agentmods.dev/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator"><img src="https://agentmods.dev/badge/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for technical-indicator

Your own site · 80×15
<a href="https://agentmods.dev/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator"><img src="https://agentmods.dev/badge/skills/kimrejstrom/alpacalyzer-algo-trader/technical-indicator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00505
Opus 5 $0.00017 $0.00253
Sonnet 5 $0.00007 $0.00101
Haiku 4.5 $0.00003 $0.00051

Measured 12d ago against content hash 03e6e3f71e5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

technical-indicator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/technical-indicator/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scope Constraint

  • Indicators go in src/alpacalyzer/analysis/technical_analysis.py (methods on TechnicalAnalyzer)
  • Tests go in tests/test_technical_analysis.py
  • Uses pandas-ta library for indicators, pandas/numpy for custom calculations

Steps

1. Study existing indicators

Read src/alpacalyzer/analysis/technical_analysis.py — all indicators are methods on TechnicalAnalyzer. Each returns dict with value, signal ("bullish"/"bearish"/"neutral"), and description.

Also read tests/test_technical_analysis.py for the test pattern.

2. Check pandas-ta availability

import pandas_ta as ta
print(ta.version)
# See available indicators: https://github.com/twopirllc/pandas-ta#indicators

Use pandas-ta if the indicator exists there. Otherwise implement with pandas/numpy.

3. Add indicator method

Add calculate_<indicator>(self, ticker, period) to TechnicalAnalyzer. Follow the pattern:

  • Fetch price data with self.get_price_data(ticker, days=max(period * 2, 30))
  • Handle insufficient data → return {"value": None, "signal": "neutral", "description": "Insufficient data"}
  • Calculate indicator value
  • Interpret signal (be conservative — when in doubt, return neutral)
  • Wrap in try/except → return neutral on error

4. Integrate with analyze_ticker()

Add your indicator to analyze_ticker() method — include in signals list and score calculation if appropriate.

5. Write tests

Test: bullish signal, bearish signal, insufficient data handling, error handling, integration in analyze_ticker(). Use mock price data (pandas DataFrame with Close/High/Low/Open/Volume columns).

6. Run and verify

uv run pytest tests/test_technical_analysis.py -v

Reference files

Purpose File
All indicators src/alpacalyzer/analysis/technical_analysis.py
Tests tests/test_technical_analysis.py

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 60 lines · 35 tokens per session scan A 03e6e3f71e5e

Subscribe to this mod's changes

technical-indicator is a skill published in the GitHub repository kimrejstrom/alpacalyzer-algo-trader (2 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 505 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.