Backtesting Lab

No-Code Trading Strategy Builder

Build trading rules, backtest OHLC data locally and export reproducible Python rules.

Build and test rules without programming. Use synthetic practice candles or your own OHLC CSV. No files leave your browser.

CSV format: date,open,high,low,close; ascending unique ISO dates or UTC timestamps (YYYY-MM-DDTHH:MM:SSZ), decimal point, comma separator. Maximum 20,000 candles. Each file represents one instrument and timeframe.

Signals use completed candles; entries and opposite-signal exits execute at the next open. Stops take priority when both stop and target are touched. Gaps fill at the open if a stop is crossed; targets receive no gap improvement. One position, no leverage, fractional units, no funding or borrow costs. All trades are closed at the end. Short losses can exceed the planned risk. This is an educational simulation, not investment advice.

The RSI uses rolling simple averages (not Wilder smoothing). The breakout uses the previous range excluding the signal candle. Drawdown is marked at candle close, not the intrabar maximum. To reproduce the trades, export the rules, OHLC and Python runner to one folder and run:

python strategy-builder.py strategy.json ohlc.csv > trades.csv

Analyze the exported trades in Backtest Check