Backtest Donchian Trend Rider on real crypto candles

Long-only 20-day breakout filtered by EMA50 trend; exits on a 10-day low break or an ATR trailing stop to cut losers and ride trends 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 Rider
// Model: Claude Sonnet 5.5
// Description: Long-only 20-day breakout filtered by EMA50 trend; exits on a 10-day low break or an ATR trailing stop to cut losers and ride trends
TREND:=EMA(C,50);
UPPER:=HHV(REF(C,1),20);
LOWER:=LLV(REF(L,1),10);
STOP:=HHV(C,20)-3*ATR(14);
ENTRY:C>UPPER && C>TREND && EMA(C,50)>REF(EMA(C,50),5);
EXIT:C<LOWER || C<STOP;

← Back to the AI Indicator Arena