AI Agent Skills

Practical Use Cases

Comparisons & Evaluations

Free Resources & Guides

Tested Digital Products

Post Page Advertisement [Top]


General-purpose large language models often struggle with intraday trading analysis because raw conversational prompting invites arithmetic drift, timeframe confusion, and look-ahead bias. If you are searching for a reliable day trader skill for Claude, the solution is not a prompt that guesses tomorrow's price—it is a deterministic, offline-capable engineering harness that enforces strict data quality, asset-class microstructure rules, exact position sizing, and leak-free historical validation.

This specification introduces day-trader-agent (View Skill Build & Package Workspace), a modular AI Agent Skill system engineered for Stocks & ETFs, Forex, Cryptocurrency, and Futures. Below, we examine the problems it solves, its 10 specialized sub-skills, its deterministic validation and risk formulas, and how to run it locally in Claude Code or any Python 3.10+ environment.

Important Analytical Disclaimer: day-trader-agent is an educational and analytical software toolkit that performs deterministic calculations on OHLCV market data. It is not financial, investment, or tax advice, does not predict market prices, and contains zero live brokerage execution paths. Simulated backtests, paper trades, and Monte Carlo bootstrap percentiles never guarantee future live trading profitability.

1. Problem Solved & Intended Audience

When traders and quantitative engineers use AI coding or research agents to analyze intraday setups, four failure modes repeatedly occur without a structured skill harness:

  • Data Quality Blindness: Calculating moving averages or Opening Range Breakouts (ORB) over CSV files that contain missing bars, duplicate timestamps, inverted high/low envelopes, or stale delayed feeds presented as real-time.
  • Cross-Market Math Errors: Applying cash-equity share sizing formulas to Forex pairs (ignoring JPY pip scaling and quote-to-account currency conversion), Crypto perpetuals (ignoring 24/7 UTC sessions, exchange taker fees, and 8-hour funding drag), or CME Futures (ignoring contract multipliers, tick values, Globex maintenance halts, and roll proximity).
  • Backtest Look-Ahead Leakage: Evaluating indicators across the full array of candles rather than slicing causally at bar index i, or assuming optimistic target fills on ambiguous bars where a single candle's [low, high] range spans both the stop-loss and profit target.
  • Unsafe Execution Coupling: Mixing analytical research scripts with live brokerage API keys or unattended background daemons.

Intended Audience: day-trader-agent is built for systematic intraday and swing traders, technical researchers, and AI agent developers who want Claude (or any skills-compatible agent) to act as a disciplined quantitative research analyst and trade-journal auditor.

2. Architecture & What Is Included in the Package

Designed after a technical audit of Jakeschincariol/day-trader-skill (MIT License), day-trader-agent retains the zero-dependency Python standard-library philosophy while isolating and excluding live brokerage order execution (trader-broker) and congressional scraping (trader-pelosi) in favor of a comprehensive multi-market analytical engine.

day-trader-agent/
├── SKILL.md                          # Primary Claude Agent Skill definition
├── README.md                         # Full documentation and CLI usage guide
├── references/                       # 6 deep-dive domain & methodology specifications
│   ├── market-rules.md
│   ├── setup-validation.md
│   ├── risk-management.md
│   ├── backtesting-methodology.md
│   ├── data-quality.md
│   └── report-formats.md
├── skills/                           # 10 specialized modular sub-skills
│   ├── market-scanner/SKILL.md
│   ├── market-analyst/SKILL.md
│   ├── setup-validator/SKILL.md
│   ├── entry-planner/SKILL.md
│   ├── exit-planner/SKILL.md
│   ├── risk-manager/SKILL.md
│   ├── strategy-researcher/SKILL.md
│   ├── backtesting-analyst/SKILL.md
│   ├── trade-journal/SKILL.md
│   └── daily-review/SKILL.md
├── src/                              # Zero-dependency Python 3.10+ standard-library engine
│   ├── cli.py                        # Unified CLI (ANALYSIS, PAPER_TRADING, BACKTEST, JOURNAL_REVIEW)
│   ├── data/                         # Models, quality auditor, market rules, CSV loader
│   ├── indicators/                   # SMA, EMA, Wilder RSI, MACD, Wilder ATR, VWAP, RVOL, ORB
│   ├── strategies/                   # Setup detectors, 4-state validator, conditional planner
│   ├── risk/                         # Multi-market position sizing & risk limit gates
│   ├── backtesting/                  # Chronological splits, causal engine, Monte Carlo bootstrap
│   └── reporting/                    # CSV/JSON trade journal, paper ledger, 9-section daily review
├── config/                           # JSON definitions for instruments, strategies, and risk caps
├── examples/                         # Reproducible fixture generator & sample Markdown reports
└── tests/                            # Deterministic offline unittest suite & adversarial fixtures

The 10 Modular Sub-Skills Included

  1. market-scanner: Audits multi-asset watchlists for data freshness and session eligibility.
  2. market-analyst: Evaluates asset-class microstructure rules, session overlaps, and volatility regimes.
  3. setup-validator: Classifies candidate setups into VALIDATED, REJECTED, INSUFFICIENT_DATA, or BLOCKED.
  4. entry-planner: Defines conditional trigger zones, invalidation levels, and cancellation criteria.
  5. exit-planner: Computes multi-target R-multiple scale-outs and time-stop bar limits.
  6. risk-manager: Enforces trade risk caps, daily loss limits, and aggregate open-risk ceilings.
  7. strategy-researcher: Parameterizes strategy definitions in config/strategies.json.
  8. backtesting-analyst: Runs chronological 60/20/20 splits and seeded Monte Carlo bootstrap simulations.
  9. trade-journal: Logs and audits realized trades in CSV/JSON format, separating rule compliance from outcome variance.
  10. daily-review: Compiles a structured 9-section end-of-day trading review report.

3. Multi-Market Microstructure Rules Engine

Unlike single-market scripts that treat every ticker as a US cash stock, src/data/markets.py enforces dedicated rule checks for four distinct asset classes:

Asset Class Sample Instruments Session & Timezone Rules Market-Specific Microstructure & Risk Checks
Stocks & ETFs SPY, TSLA US Regular Trading Hours (09:30–16:00 America/New_York) Computes Opening Range strictly from RTH bars; flags overnight gaps >= 3%; checks Relative Volume (RVOL); enforces SEC Rule 201 Short Sale Restriction (SSR) and hard-to-borrow blocks.
Forex (FX) EUR/USD, USD/JPY 24/5 UTC with Sydney, Tokyo, London & NY overlap detection Parses 6-character ISO pairs into base/quote; infers pip size (0.01 for JPY, 0.0001 otherwise); converts quote pip value to account currency; blocks spreads > 25% of 14-bar average range and high-impact macro release windows.
Cryptocurrency BTCUSDT 24/7 continuous UTC with explicit exchange venue (e.g., BINANCE_SPOT) Treats any missing candle as a feed outage; deducts round-trip taker fees (2 * taker_fee_bps); flags elevated 8-hour perpetual funding drag (>= 5 bps).
Futures ESZ26, MESZ26 CME Globex / RTH (America/New_York) with daily maintenance halt block (17:00–18:00 ET) Parses root, contract month code (F–Z), and year; verifies tick_value == tick_size * contract_multiplier; warns within roll_warning_days of expiration; caps contracts by verified initial margin.

4. Four-State Setup Validation & Strategy Library

Every candidate trade evaluated by src/strategies/validator.py is assigned one of four deterministic statuses before any conditional plan or paper trade can be staged:

Validation Status Deterministic Meaning Paper Trade Allowed? Example Trigger Conditions
VALIDATED All data-quality, freshness, market-rule, technical indicator, and risk-budget checks pass. Yes (Local Paper Ledger Only) Valid OHLCV sequence, active trading session, confirmed breakout above ORB high with RVOL >= 1.1 and VWAP alignment, net R:R >= 1.5R.
REJECTED Market data is clean, but one or more technical or cost conditions failed. No Price remains inside the opening range, EMAs are unaligned, RVOL is below threshold, or FX spread exceeds 25% of ATR.
INSUFFICIENT_DATA Input data is missing bars, contains duplicate timestamps or inverted OHLC values, or has STALE / UNAVAILABLE freshness. No Missing 5-minute candle in sequence, negative/zero price, high < low, or fewer than 20 warmup bars.
BLOCKED A hard risk gate or regulatory/exchange rule prohibits taking the setup regardless of chart appearance. No Daily loss limit reached, aggregate open-position risk full, active SEC Rule 201 SSR on a short setup, Globex maintenance halt, or expired futures contract.

Pre-Configured Strategies in config/strategies.json

  • orb_breakout (Opening Range Breakout): Evaluates 3-bar Opening Range breakout with 9/21 EMA, 14-bar Wilder ATR, RVOL >= 1.1, session VWAP alignment, 1.5x ATR stop, and 2.0R / 3.0R profit targets.
  • ema_trend_pullback (Trend Pullback): Identifies pullbacks to the fast 9 EMA within a confirmed 9/21 EMA trend with 14-bar RSI filtering.
  • structure_range_breakout (Range Breakout): Detects consolidation range breakouts with RVOL >= 1.0 and multi-target scaling.
  • rsi_mean_reversion (Mean Reversion): Evaluates overextended 14-bar Wilder RSI extremes with strict 12-bar maximum holding time stops.

5. Deterministic Risk Management & Position Sizing

In src/risk/manager.py, position size is never guessed. Given account equity E, per-trade risk fraction f_trade, daily loss limit fraction f_daily, and maximum open risk fraction f_open, the engine computes:

Base Trade Budget      = min(E * f_trade, Max_Risk_Cap)
Remaining Daily Budget = max(0, (E * f_daily) - Realized_Daily_Loss)
Remaining Open Budget  = max(0, (E * f_open)  - Current_Open_Risk)
Effective Risk Budget  = min(Base Trade Budget, Remaining Daily Budget, Remaining Open Budget)

Next, it calculates the Estimated Loss Per Unit at Planned Stop by combining raw stop distance, contract multiplier M, currency conversion factor C, modeled slippage ticks, half-spread, and round-trip taker fees:

Loss_Per_Unit = (Stop_Distance * M * C) + Slippage_Per_Unit + Round_Trip_Fee_Per_Unit
Raw_Quantity  = Effective_Risk_Budget / Loss_Per_Unit
Final_Size    = floor(min(Raw_Quantity, Max_Notional_Qty, Max_Margin_Qty) / Quantity_Step) * Quantity_Step

If Final_Size < Min_Quantity, the trade is automatically marked BLOCKED with a position size of 0.0.

6. Leak-Free Backtesting & Seeded Monte Carlo Simulation

To prevent curve-fitting and false confidence, src/backtesting/engine.py enforces six mandatory safeguards:

  1. Chronological 60% / 20% / 20% Splits: Datasets are split strictly in time order into Train (60%), Validation (20%), and Out-of-Sample Test (20%) windows—never shuffled randomly.
  2. Causal Bar Slicing: At bar index i, the evaluator receives only candles[:i + 1], and signals triggering on the close of bar i enter at the open of bar i + 1.
  3. Explicit Intrabar Ambiguity Modes: When a single bar's [low, high] range touches both the stop and target, the engine defaults to CONSERVATIVE_STOP_FIRST (recording an AMBIGUOUS_STOP_FIRST exit) and reports the exact ambiguous_bar_count alongside optional sensitivity bounds (OPTIMISTIC_TARGET_FIRST and OHLC_PATH_HEURISTIC).
  4. Buy-and-Hold Baseline Comparison: Every backtest reports strategy net return alongside passive Buy-and-Hold return and excess return over the identical window.
  5. Low-Sample-Size Warnings: Any split with fewer than 30 trades automatically flags LOW_SAMPLE_SIZE.
  6. Seeded Monte Carlo Bootstrap: Resamples realized trade PnLs with replacement using an explicit PRNG seed (default --seed 42) to report 5th, 50th, and 95th percentile net return and maximum drawdown distributions.

7. Installation & CLI Usage Instructions for Claude

Prerequisites & Setup

  • Runtime: Python 3.10+ (tested on Python 3.11.2). Zero external pip dependencies are required.
  • Install into Claude Code / Skills Directory: Copy the day-trader-agent/ folder into ~/.claude/skills/day-trader-agent (global) or <project>/.claude/skills/day-trader-agent (project-local), or access the full skill build at this link.

Four Unified CLI Operating Modes

# 1. ANALYSIS Mode: Validate data quality, market rules, setup status & conditional plan
python3 -m src.cli --mode ANALYSIS --symbol SPY --csv tests/fixtures/stocks_spy_5m.csv --strategy orb_breakout --format markdown

# 2. PAPER_TRADING Mode: Stage a hypothetical paper trade locally (only if VALIDATED)
python3 -m src.cli --mode PAPER_TRADING --symbol SPY --csv tests/fixtures/stocks_spy_5m.csv --strategy orb_breakout

# 3. BACKTEST Mode: Run chronological 60/20/20 backtest with conservative intrabar resolution & seed 42
python3 -m src.cli --mode BACKTEST --symbol SPY --csv tests/fixtures/stocks_spy_5m.csv --strategy orb_breakout --intrabar-mode CONSERVATIVE_STOP_FIRST --seed 42 --format markdown

# 4. JOURNAL_REVIEW Mode: Audit completed trades and rule compliance from CSV or JSON
python3 -m src.cli --mode JOURNAL_REVIEW --journal-file tests/fixtures/sample_journal.json

8. Reproducible Test & Synthetic Fixture Verification

The package includes deterministic synthetic fixtures in tests/fixtures/ (explicitly labeled as synthetic test data, never real live trading results) covering:

  • stocks_spy_5m.csv — Two US Regular Trading Hours sessions on SPY testing Opening Range calculation and RVOL-confirmed breakout validation.
  • forex_eurusd_15m.csv — 30 EUR/USD 15-minute bars across the London–New York overlap testing pip sizing and scheduled macro event warnings.
  • crypto_btcusdt_5m.csv — 30 continuous 24/7 UTC BTCUSDT bars testing round-trip taker fee deduction (8 bps) and funding drag.
  • futures_es_5m.csv — 25 CME RTH ESZ26 bars testing $12.50 tick value verification (0.25 * 50) and initial margin caps ($12,650 per contract).
  • malformed_candles.csv — Adversarial fixture containing duplicate timestamps, inverted high/low bars (high < low), negative prices, and missing intervals to verify automatic INSUFFICIENT_DATA halting.

To reproduce all synthetic fixtures and sample Markdown reports offline, run:

python3 examples/run_examples.py

9. Known Limitations & Safety Guardrails

  • No Live Brokerage Order Execution: By design, day-trader-agent cannot connect to brokerage accounts, store API keys, or submit live orders.
  • Stop-Loss Realism: A planned stop-loss is a conditional trigger, not a guaranteed execution price. Overnight gaps, flash crashes, or illiquid books can cause realized losses larger than planned risk at stop.
  • Bar-Level Granularity: Intrabar paths are resolved from OHLCV candles via explicit ambiguity modes rather than Level-2 tick replay.
  • Single-File Survivorship Bias: Backtesting a single CSV file does not correct for delisted securities unless a point-in-time historical constituent universe is supplied.

10. Frequently Asked Questions

Does day-trader-agent require paid market data API keys or pip packages?

No. The entire engine is built on Python's standard library and runs 100% offline using local CSV and JSON files.

Can this Claude skill place live trades on Alpaca, Interactive Brokers, or Binance?

No. All live order execution paths were intentionally excluded so that analysis, risk calculation, and paper-trade staging remain completely isolated from financial account credentials.

How does the skill handle candles where both the stop-loss and profit target are touched in the same bar?

By default, the backtesting engine uses CONSERVATIVE_STOP_FIRST, which assumes the stop-loss was hit first on any ambiguous candle and discloses the exact ambiguous_bar_count in the report.

Sources, Attribution & Related Documentation

  1. Primary Skill Package & Workspace: Multi-Market Day Trader Agent Skill (day-trader-agent) Workspace.
  2. Reference Repository Attribution: Architectural audit and MIT attribution referencing Jakeschincariol/day-trader-skill on GitHub (MIT License, Copyright 2026 Jake Schincariol).
  3. Agent Skills Open Specification: Agent Skills Overview & SKILL.md Standard (agentskills.io).
  4. Explore More on This Site: Browse our AI Agent Skills Directory, Digital Skill Packages, and Technical Research Archive.

No comments:

Post a Comment

Bottom Ad [Post Page]