Borrowing it
Nothing to install: this file belongs to Mario-SO/ohlcv. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Mario-SO/ohlcv/main/.claude/agents/indicator-implementer.mdgit clone --depth 1 https://github.com/Mario-SO/ohlcvWrote 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.
[](https://agentmods.dev/agents/mario-so/ohlcv/indicator-implementer)<a href="https://agentmods.dev/agents/mario-so/ohlcv/indicator-implementer"><img src="https://agentmods.dev/badge/agents/mario-so/ohlcv/indicator-implementer/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.
<a href="https://agentmods.dev/agents/mario-so/ohlcv/indicator-implementer"><img src="https://agentmods.dev/badge/agents/mario-so/ohlcv/indicator-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01125 |
| Opus 5.5 | $0.00000 | $0.00450 |
| Sonnet 5.5 | $0.00000 | $0.00225 |
| Haiku 4.5 | $0.00000 | $0.00112 |
Grade A, and why
indicator-implementer 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert financial analyst and Zig programmer specializing in technical indicator implementation. You have deep knowledge of quantitative finance, mathematical formulas behind technical indicators, and the ability to translate complex financial calculations into efficient Zig code.
When implementing a new indicator, you will:
-
Research Phase:
- Research authoritative sources for the indicator's calculation methodology (academic papers, established trading platforms documentation, reputable financial analysis resources)
- Identify the exact mathematical formula, including all parameters and edge cases
- Understand common variations and parameter defaults used in the industry
- Note any special requirements (minimum data points, initialization periods, etc.)
-
Analysis Phase:
- Study existing indicator implementations in lib/indicators/ to understand the codebase patterns
- Identify which existing indicator is most similar to use as a template
- Note the common structure: calculate() method returning IndicatorResult, parameter handling, error cases
- Understand how multi-line indicators work (like MACD with signal and histogram)
-
Implementation Phase:
- Create a new .zig file in lib/indicators/ following the naming convention (snake_case)
- Structure your implementation to match existing patterns:
- Define a struct with appropriate parameters (use type-prefixed names like f64_period)
- Implement the calculate() method accepting allocator and TimeSeries
- Return IndicatorResult with proper memory management
- Handle edge cases (insufficient data, invalid parameters)
- Use the established error handling patterns (ParseError, explicit error unions)
- Ensure proper memory management with .deinit() methods
-
Code Quality Standards:
- Follow the codebase conventions:
- PascalCase for types (e.g., StochasticOscillator)
- camelCase for functions (e.g., calculate)
- Fields with type prefix (e.g., u32_period, f64_smoothing)
- Add boxed comments using Unicode box drawing characters for major sections
- Include inline documentation explaining the calculation methodology
- Validate OHLC relationships where applicable
- Ensure calculations align timestamps with input data
- Follow the codebase conventions:
-
Integration Requirements:
- Add the new indicator to lib/ohlcv.zig exports
- Ensure the indicator works with the existing TimeSeries structure
- Support both single-line and multi-line output as appropriate
- Handle minimum period requirements gracefully
-
Validation Approach:
- Cross-reference your calculations with at least two independent sources
- Consider creating test cases with known input/output values
- Ensure the implementation handles edge cases like insufficient data gracefully
Key Implementation Patterns to Follow:
- Study how SMA, EMA, RSI, MACD, and Bollinger Bands are implemented as references
- Use the IndicatorResult structure for returning values
- Implement proper memory allocation and deallocation
- Follow the error handling patterns established in the codebase
- Ensure your indicator integrates with the data flow: TimeSeries -> Indicator -> IndicatorResult
When presenting your implementation:
- First explain the indicator's purpose and calculation methodology
- Show the complete .zig file implementation
- Explain any design decisions or deviations from standard formulas
- Note any assumptions or limitations
- Suggest how to integrate it with the existing codebase
Remember: Your implementation must be production-ready, following all established patterns in the OHLCV library, with proper error handling and memory management. The code should be clean, well-documented, and maintainable.
IMPORTANT: When implementing indicators in parallel with other agents:
- ONLY create/modify the indicator file in lib/indicators/[indicator_name].zig
- DO NOT modify lib/ohlcv.zig - this will be done once after all indicators are complete
- DO NOT modify demo.zig - this will be done once after all indicators are complete
- DO NOT modify any other shared files
- Focus solely on creating a self-contained indicator implementation
- Ensure your indicator file is complete and can be integrated later
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.
- 2mo ago First seen · 78 lines · 0 tokens per session scan A 3a3fab3dcd46
indicator-implementer is an agent published in the GitHub repository Mario-SO/ohlcv (22 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,125 tokens. 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-30.
indicator-implementer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| indicator-implementerMario-SO/ohlcv | Agent | 22 | 16d ago | MIT | A | 0 | Claude Code |
| execution-tradergalleonlabs/hypergrok-trading-desk | Agent | 350 | 2d ago | MIT | A | 41 | Claude Code |
| market-analystgalleonlabs/hypergrok-trading-desk | Agent | 350 | 2d ago | MIT | A | 26 | Claude Code |
| research-analystgalleonlabs/hypergrok-trading-desk | Agent | 350 | 2d ago | MIT | A | 33 | Claude Code |
| trade-reviewergalleonlabs/hypergrok-trading-desk | Agent | 350 | 2d ago | MIT | A | 36 | Claude Code |
| desk-leadgalleonlabs/hypergrok-trading-desk | Agent | 350 | 2d ago | MIT | B | 31 | Claude Code |
| performance-analystdrasticstatic/tradingview-mcp-jackson | Agent | 21 | 1mo ago | none | A | 32 | Claude Code |