Source: https://hamster-bot.com/en/algo/doubledragon

[← All strategies](https://hamster-bot.com/en/algo)

# 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) or `donchian`
- `zigzag` - 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](https://hamster-bot.com/bot/backtesting)

Script (PineScript) for testing the strategy on historical data in the TradingView strategy tester:

- [A simple trend strategy with a minimum of settings](https://www.tradingview.com/script/JVBEcJXz-strategy-trend-zig-zag-pub/)

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](https://hamster-bot.com/en/tester) and run it in [hamster-bot](https://hamster-bot.com/en/download).
