OPEN-SOURCE SCRIPT
Multi-Indicator Divergence Strategy + Martingale (v5)

This advanced trading strategy combines multiple technical indicators to identify powerful divergence patterns confirmed by trend analysis, enhanced with a martingale position sizing system for risk management.
- HMA-based trend filter to validate entry signals
- Customizable take profit and stop loss parameters
- Smart martingale system that increases position size after losses
- Direction lock mechanism that prevents consecutive losses in the same direction
- Comprehensive alert system with JSON-formatted messages for automation integration
How It Works
The strategy identifies trading opportunities when all three OBV show divergence, but only executes trades when the trend filter confirms the signal. After losing trades, the martingale system increases position size according to your specifications, while the direction lock prevents trading in the same direction as the previous loss until a winning trade resets the system.
IDEAL Setup Tested
- Symbol: BNBUSDT
- Timeframe: 5-minute
- Base position size: 1 BNB
- Take Profit multiplier: 1.5%
- Martingale factor: 2 (doubles position after each loss)
- Max martingale steps: 3 (maximum position size = 4x base)
If you're happy with the results, you can donate USDT to the following TRON (TRC20) address any amount: TQv3qnBUgfe43zUkSD5NERXpUScu9SxYPk
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.