π§ͺ Backtest v2
pick a strategy β choose data (pattern / SQL / form) β preview β run. Ctrl+Enter to run.
β
2. Data Source
ββ Enter Β· Esc
quick:
snap:
snap:
π° Portfolio (all values in %, type direct)
π‘οΈ SL / TP override (% from entry; blank = use strategy's own)
π·οΈ order type β drives what happens to a position still open at end of backtest
examples: commission=1 means 1%, slippage=0.05 means 0.05%, portfolio=10 means 10% of equity
π read-only SELECT/WITH Β· max 1000 rows
3. Run
strategy
instruments ()
date range
timeframe β
π Result
starting
final value
return
trades:
open:
wins:
losses:
win rate:
elapsed:
total pnl:
unrealized:
max DD:
best:
worst:
signals:
fills:
bars:
order type:
MIS auto square-off:
discarded @ EOD:
π Plotly (browser)
π Plotly chart disabled
π Preview
bars:
| no rows match filter |
πΌ Trades ()
| instrument | side | entry ts | entry px | sl | t1 | t2 | exit ts | exit px | reason | pnl | status |
|---|---|---|---|---|---|---|---|---|---|---|---|
π― Criteria scoring
| type | instrument | ts | close | score | % | first failed | checks (β/β) | details | chart |
|---|---|---|---|---|---|---|---|---|---|
| no bars at this score threshold | |||||||||
first failed:
indicators
alert candle (bar[-2])
current candle (bar[-1] Β· evaluation bar)
criteria
| criterion | actual | expected |
|---|---|---|
raw json
π Past runs
| when | strategy | universe | tf | trades | win% | pnl | run_id |
|---|---|---|---|---|---|---|---|
| no past runs yet | |||||||
π Strategy source
β³ loading sourceβ¦