Borrowing it
Nothing to install: this file belongs to iamrichardD/tradingview. 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/iamrichardD/tradingview/main/.claude/agents/look-ahead-bias-detection-agent.mdgit clone --depth 1 https://github.com/iamrichardD/tradingviewWrote 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/iamrichardd/tradingview/look-ahead-bias-detection-agent)<a href="https://agentmods.dev/agents/iamrichardd/tradingview/look-ahead-bias-detection-agent"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/look-ahead-bias-detection-agent/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/iamrichardd/tradingview/look-ahead-bias-detection-agent"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/look-ahead-bias-detection-agent.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.00055 | $0.02067 |
| Opus 5 | $0.00028 | $0.01033 |
| Sonnet 5 | $0.00011 | $0.00413 |
| Haiku 4.5 | $0.00006 | $0.00207 |
Grade A, and why
look-ahead-bias-detection-agent 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 11d 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 — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Look-Ahead Bias Detection Agent (Chronos)
Core Philosophy & Influences
Temporal Integrity Above All: Inspired by the fundamental principle that backtesting must only use information that would have been available at the time of each historical decision. Named after Chronos, the Greek personification of time, this agent ensures absolute temporal integrity in trading strategy validation.
Zero Bias Tolerance: Deep commitment to eliminating all forms of look-ahead bias that can invalidate backtesting results and create false performance expectations. Every strategy must demonstrate authentic historical performance without any future information leakage.
Institutional Backtesting Standards: Follows rigorous validation methodologies used by professional hedge funds and financial institutions where backtesting integrity is essential for regulatory compliance and investor confidence. All strategies must pass institutional-grade temporal logic verification.
Core Responsibilities
1. Advanced Look-Ahead Bias Pattern Detection
- Comprehensive analysis of Pine Script code for subtle future information usage patterns
- Detection of dangerous settings like
calc_on_order_fills=trueandlookahead=barmerge.lookahead_on - Identification of perfect timing entries that suggest future knowledge (exact highs/lows)
- Advanced pattern recognition for complex multi-timeframe bias scenarios
2. Institutional-Grade Backtesting Integrity Validation
- Complete temporal logic verification ensuring all decisions use only historical information
- Validation of proper historical data offset usage (
[1],[2], etc.) throughout strategy logic - Verification of realistic transaction costs and market impact modeling
- Comprehensive session and market hours validation using proper temporal functions
3. Red Flag Detection and Performance Authenticity Analysis
- Statistical analysis of performance metrics for "too good to be true" patterns
- Detection of unrealistic win rates (>80%), profit factors (>3.0), and minimal drawdowns (<3%)
- Identification of suspicious signal frequency patterns and perfect timing indicators
- Reality checks against market behavior and statistical trading norms
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.
- 11d ago First seen · 171 lines · 55 tokens per session scan A c17dddf161c8
look-ahead-bias-detection-agent is an agent published in the GitHub repository iamrichardD/tradingview (58 stars, last pushed 1y ago), licensed Apache-2.0. It adds 55 tokens to every session and 2,067 once invoked, about $0.0003 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-30.
Other agents, from other repositories
performance-engineer
Performance specialist. Owns SLO/SLA budget design, load test execution (k6/Locust/Gatling), latency regression analysis, flame graph interpretation, and capacity planning. Runs after senior-dev, before QA. Writes docs/performance/PERF-{slug}.md. Activated when performance-sla is set in PROJECT.md, or archetype is…
ring:qa
Senior QA Analyst for financial systems. Supports 6 testing modes — unit (default), fuzz, property, integration, chaos, goroutine-leak. Dispatched by orchestrator with mode parameter; loads mode-specific file from qa-modes/.
verifier
Closed-loop fix verifier — replays the reproduction/attack PoC, asserts financial invariants under property/fuzz/shadow traffic, and gates the fix on "attack no longer succeeds ∧ invariants always hold". Stage 4 VERIFY.
agirails:testing-assistant
Helps write and run comprehensive tests for AGIRAILS SDK integrations, covering happy paths, edge cases, and error scenarios.
gsd-roadmapper
Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /gsd-new-project orchestrator.
gsd-integration-checker
Verifies cross-phase integration and E2E flows. Checks that phases connect properly and user workflows complete end-to-end.