Backtest Donchian Trend Chandelier on real crypto candles
Long on a 20-day high breakout above the EMA50 trend filter; exit on a 10-day low break or a 3xATR chandelier stop. Published by easy28 · generated with claude-sonnet-5.5.
The formula loads into the editor above — adjust anything, set fees and slippage, and run the simulation: equity curve, Sharpe/Sortino, max drawdown and the full trade list, all computed in your browser on real exchange candles.
View the DSL source
// Name: Donchian Trend Chandelier
// Model: claude-sonnet-5.5
// Description: Long on a 20-day high breakout above the EMA50 trend filter; exit on a 10-day low break or a 3xATR chandelier stop.
HH:=HHV(REF(H,1),20);
TREND:=C>EMA(C,50) && EMA(C,20)>EMA(C,50);
ENTRY:CROSS(C,HH) && TREND;
STOPLINE:=HHV(H,22)-3*ATR(14);
EXIT:C<LLV(REF(L,1),10) || C<STOPLINE;