SnR Breaks and Restests with Volume Trigger
- Göstergeler
- Sürüm: 1.0
- Etkinleştirmeler: 5
- Inputs: Lookback Period (20), Delta Volume Filter Length (2) and Adjust Box Width (1).
- Delta volume: each bar counts as +volume or −volume depending on whether it closed up or down. A doji keeps the previous direction.
- Pivots: they are found on the close and confirmed lookback bars later. The box starts at the pivot bar.
- Support box: it appears on a pivot low when the bar's delta volume is above the filter. It extends down by ATR(200) × width.
- Resistance box: it appears on a pivot high when the bar's delta volume is below the filter. It extends up by the same amount.
- ATR: I used Wilder's smoothing, as Pine's ta.atr does, since MT5's built-in iATR averages differently.
- Box colour: it fades with delta volume. Once a box breaks it turns red or green with a dashed border, and it goes back to normal if it holds.
- Latest box: only the most recent support box and the most recent resistance box are tracked and extended to the right. Older boxes stop where the next one replaced them.
- Diamonds: the four signals are drawn one bar back,
- Volume: it uses tick volume by default, because forex has no real volume. Set Volume type to real if your broker provides it.
- Closed bars: signals and boxes are calculated on closed bars only, so nothing repaints, but they appear one bar later than a tick-by-tick calculation would show.
- Box borders: MT5 rectangles can't have a separate border from the fill, so each box is two rectangles (a faint fill and an outline).
- Transparency: I blend the fill colours against your chart background, because rectangles don't support alpha.
- Labels: MT5 text has no background, so the labels are coloured text.
- Box limit: there is a Max boxes input default 50
