Documentation

StratReceipt analyzes Pine Script and Python strategies for common issues that cause unrealistic backtests or trading losses.

Detection Rules

We currently run 19 distinct risk checks for Pine Script and 5 for Python, with no overlap, across three categories: Stability, Risk Management, and Backtest Realism.

Python: 5 Python checks run today; every other Python check is listed on the receipt as not confirmed, which means the receipt does not say whether the strategy has that problem. A Python receipt with no finding is not a clean bill of health.

See every check, per language, and what it finds →

Rating System

Each strategy receives a score from 0–100. Scores are calculated by deducting points for each detected issue, weighted by severity and confidence.

90-100
Score 90-100
70-89
Low Risk
50-69
Moderate Risk
30-49
High Risk
0-29
Critical Issues

A receipt with no findings reads “No assigned pattern observed”: none of the patterns that rules version checks for was seen in the code. It is not a guarantee. A score of 90 or more that has findings shows the score and its findings with no label. Older receipts that carried a different sentence or a verdict label now show this wording; their signatures are unchanged.

Receipts issued before 11 August 2026 also carry a letter grade inside their signature. Those signatures are unchanged and still verify exactly as issued — a receipt records what was asserted at the time it was written.

Category Scores

🔒 Stability
Measures how consistently the strategy behaves. Lookahead bias and repainting issues lower this score.
⚖️ Risk Management
Evaluates position sizing and risk controls. Missing stops, martingale, and high leverage reduce this score.
📈 Backtest Realism
How likely backtests reflect live performance. No commission and unrealistic fills hurt this score.
StratReceipt © 2026