Darvas Boxes Modern/Classic
Category: trend, market_structure
An implementation of the Darvas Box theory, identifying price consolidation ranges based on pivot highs and lows, with support for modern and classic Darvas calculation variations.
Formula
\text{Top} = \text{PivotHigh}(n), \text{where } \text{High}_{i} > \text{High}_{i \pm n} \\ \text{Bottom} = \text{PivotLow}(m), \text{where } \text{Low}_{j} < \text{Low}_{j \pm m} \text{ and } j > i \\ \text{Breakout} = \text{Close} > \text{Top} \lor \text{Close} < \text{Bottom}
Inputs
- DarvasMode (default: 3)
- PivotStrength (default: 3)
- RollingPeriod (default: 1)
- BoxesMode (default: 0)
- ChannelMode (default: 1)
- PivotsMode (default: 0)
- GhostBoxesMode (default: 0)
- SignalMode (default: 0)
See signal primitives and every published strategy that uses Darvas Boxes Modern/Classic on WOBR StrategyVerse.