Double Top and Double Bottom candle pattern for TradingView. Coded in Pine Script.
Highlight the signal bar with an arrow. Draws the pattern using lines.
It contains parameters for customizing size of the pattern movement:
- Initial movement. Size of the first/last leg in points or ATR’s. Plus length of the movement in bars.
- Width of the pattern in bars. It’s a distance between two highs/lows.
- Max difference between tops/bottoms in points of ATR’s.