Noon Barbari
Registrati
Sfoglia la documentazione

Backtesting

Esegui una strategia su barre storiche. Non viene piazzato alcun ordine — è un simulatore sopra i dati salvati.

Modello di esecuzione

Entrate e uscite vengono decise alla chiusura della barra. L'esecuzione avviene al prezzo di apertura della barra successiva. I livelli TP e SL intra-barra possono eseguire all'interno della stessa barra in cui sono stati armati — il TP esegue se l'high della barra raggiunge il target, lo SL se il low tocca lo stop, con TP che vince in caso di parità (configurabile). Slippage e un modello di impatto-prezzo lineare sono sovrapposti.

Sorgenti dati

Di default i backtest usano candele live da CCXT recuperate dall'exchange specificato (cache locale). Sono disponibili serie sintetiche — random walk, GBM con switch di regime e replay di regimi storici — per stressare la logica di strategia senza rumore di mercato reale.

The PDF reports

Every backtest produces two PDFs you can download from /backtest. The Stats PDF — equity curve with drawdown shading, headline metrics (PnL, Sharpe, Sortino, max drawdown, win rate, profit factor), per-symbol PnL, and the run's backtest configuration + strategy parameters. The Trade-Chart PDF — one candlestick page per closed round-trip with TP/SL bands, plus a strategy-configuration page (right after the cover) that lists every indicator, every entry/exit rule in plain English, risk guards, ladders, and account circuit breakers — so you can audit exactly what produced the trades on the following pages without flipping back to the editor.

Walkthrough: mean reversion su RSI

Un esempio minimo da incollare nell'editor di testo:

name: rsi_30_70
symbol: BTC/USDT
timeframe: 1h
rules:
  entry:
    long:
      leaf: { lhs: { indicator: rsi, period: 14 }, op: lt, rhs: { value: 30 } }
    short:
      leaf: { lhs: { indicator: rsi, period: 14 }, op: gt, rhs: { value: 70 } }
  exit:
    long:
      leaf: { lhs: { indicator: rsi, period: 14 }, op: gt, rhs: { value: 50 } }
    short:
      leaf: { lhs: { indicator: rsi, period: 14 }, op: lt, rhs: { value: 50 } }

Salva, clicca Backtest, scegli BTC/USDT · 1h · 90 giorni. Otterrai un PDF. Un hit rate intorno al 60 % su una finestra di 90 giorni è tipico su BTC orario — ed è quasi sicuramente curve-fit. Passalo al walk-forward prima di fidartene.