ohlcv: Agent for Claude Code

.claude/agents/indicator-implementer.md

indicator-implementer is an agent for Claude Code from Mario-SO/ohlcv. It costs 0 tokens per session (1,125 once invoked), scanned A, original, MIT.

A coding guide for adding a new technical indicator to an OHLCV library in Zig. Technical indicators calculate values from open, high, low, close, and volume market data to help analyse prices.

In plain words
What is it for?
Researching an indicator’s calculation, choosing a similar implementation as a model, and creating its Zig source file and result handling.
Why use it?
It gives a consistent way to research the formula, handle edge cases, and match the library’s existing implementation patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Mario-SO/ohlcv's own configuration. It tells Claude Code how to work on ohlcv 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 ohlcv configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Mario-SO/ohlcv/main/.claude/agents/indicator-implementer.md
Clone the repo
git clone --depth 1 https://github.com/Mario-SO/ohlcv

Made for: Claude Code.

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 indicator-implementer

README.md
[![agentmods](https://agentmods.dev/badge/agents/mario-so/ohlcv/indicator-implementer/github.svg)](https://agentmods.dev/agents/mario-so/ohlcv/indicator-implementer)
Your own site
<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.

agentmods 80×15 button for indicator-implementer

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,125 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.00000 $0.01125
Opus 5.5 $0.00000 $0.00450
Sonnet 5.5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00112

Measured 2mo ago against content hash 3a3fab3dcd46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/agents/indicator-implementer.md · 78 lines

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:

  1. 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.)
  2. 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)
  3. 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
  4. 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
  5. 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
  6. 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:

  1. First explain the indicator's purpose and calculation methodology
  2. Show the complete .zig file implementation
  3. Explain any design decisions or deviations from standard formulas
  4. Note any assumptions or limitations
  5. 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

Read the full file on GitHub · 78 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. 2mo ago First seen · 78 lines · 0 tokens per session scan A 3a3fab3dcd46

Subscribe to this mod's changes

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.

Related

indicator-implementer compared with agents from other repositories

indicator-implementer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
indicator-implementerMario-SO/ohlcvAgent2216d agoMITA0Claude Code
execution-tradergalleonlabs/hypergrok-trading-deskAgent3502d agoMITA41Claude Code
market-analystgalleonlabs/hypergrok-trading-deskAgent3502d agoMITA26Claude Code
research-analystgalleonlabs/hypergrok-trading-deskAgent3502d agoMITA33Claude Code
trade-reviewergalleonlabs/hypergrok-trading-deskAgent3502d agoMITA36Claude Code
desk-leadgalleonlabs/hypergrok-trading-deskAgent3502d agoMITB31Claude Code
performance-analystdrasticstatic/tradingview-mcp-jacksonAgent211mo agononeA32Claude Code