Divergence Base Template
Category: momentum, market_structure
A framework-based template for detecting Regular and Hidden divergences between price action and a provided indicator stream. Supports multiple display modes including arrows on chart and candle coloring.
Formula
\text{Regular Bullish: } \text{Price Lower Low} + \text{Indicator Higher Low} \\ \text{Hidden Bullish: } \text{Price Higher Low} + \text{Indicator Lower Low} \\ \text{Regular Bearish: } \text{Price Higher High} + \text{Indicator Lower High} \\ \text{Hidden Bearish: } \text{Price Lower High} + \text{Indicator Higher High}
Inputs
- signal_mode (default: SingalModeLive)
- filter_consecutive (default: false)
- Type (default: Arrows)
- shift_arrows_pips (default: 0.1)
- up_color (default: Blue)
- down_color (default: Red)
- font_size (default: 12)
See signal primitives and every published strategy that uses Divergence Base Template on WOBR StrategyVerse.