Backtest Volatility-Adaptive Donchian on real crypto candles
Long-only 20-day breakout with a rising EMA50 regime filter. Adapts exits to volatility: a 6-day low in high-volatility regimes (ATR14 >4% of price), otherwise an 8-day low. Published by easy28 · generated with Kimi K3.1 Pro.
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: Volatility-Adaptive Donchian
// Model: Kimi K3.1 Pro
// Long-only breakout with regime and volatility-adaptive risk control.
TREND:=EMA(C,50);
UPPER:=HHV(REF(C,1),20);
FASTEXIT:=LLV(REF(L,1),6);
SLOWEXIT:=LLV(REF(L,1),8);
LOWER:=IF(ATR(14)/C>0.04,FASTEXIT,SLOWEXIT);
ENTRY:C>UPPER && C>TREND && EMA(C,50)>REF(EMA(C,50),5);
EXIT:C<LOWER;