DoubleDragon
This is the same ZigZag strategy, but used a little differently. The whole difference is that we look at the backtest on the chart of the ratio of two coins XXXUSDT/xxxusdt.
Where a Long position opens on the synthetic chart in the strategy tester, on the real market a Long opens on XXXUSDT and a Short on xxxusdt.
Where a Short position opens, on the real market a Short opens on XXXUSDT and a Long on xxxusdt.
Parameters
The strategy runs two bots - one for each coin of the pair. The levels are built on the synthetic price ratio chart and calculated with the settings of the first bot.
index- which coin of the pair this is: 1 - numerator (XXXUSDT), 2 - denominator (xxxusdt)strategy- which levels to trade the synthetic chart on:zigzag(default) ordonchianzigzag- ZigZag settings block:length,detection,detection_source(as in Strategy Trend Zig Zag)donchian- Donchian channel settings block:channel_len,use_tp,tp,detection_source(as in Donchian Channel)reverse- reverse mode: trade directions are swapped
Backtest
Test in the built-in backtester
Script (PineScript) for testing the strategy on historical data in the TradingView strategy tester:
But as the input in the strategy tester we choose a synthetic chart instead of a single trading pair.
The synthetic ratio chart BYBIT:XXXUSDT.P/BYBIT:xxxusdt.P (where XXX is any cryptocurrency priced higher than xxx)
Strategy tester result for 2025, BYBIT:ETHUSDT.P/BYBIT:APTUSDT.P on the 1D timeframe:
Backtest the strategy on historical data in the tester and run it in hamster-bot.