Doji at Range Extremes
- Indicateurs
- Version: 1.10
- Activations: 5
A doji in the middle of nowhere means little. This indicator mainly asks where the candle is, then what price did next.
Candle types
- Doji (body up to 5% of the range), long-legged doji, and spinning top (optional).
- Dragonfly and gravestone dojis (optional). In range mode, a dragonfly counts only at the range low and a gravestone only at the range high.
- Minimum candle size as a multiple of ATR, so tiny candles in quiet hours are ignored.
Location filter (can be switched off)
- The range is the highest high and lowest low of the last 20 candles. It must be at least 2 x ATR wide.
- The candle must be within a tolerance (ATR-based) of one edge.
- That edge must have been reached at least once before, a few candles earlier. A candle at a fresh breakout high is therefore not treated as a range extreme.
- With the filter off, the indicator works as a plain doji-family detector.
Resolution tracking
- The first close beyond the candle's own high or low within 5 candles sets the direction.
- The move counts as followed through if it travels 1 x ATR beyond the trigger before closing back through the opposite side of the candle.
- A one-line summary shows the count, up/down resolutions and the follow-through ratio (historical counts on your chart).
- Alerts on new candles and on resolution. Buffers "Doji at high" and "Doji at low" are available to Expert Advisors.
How it calculates
Closed candles only, recalculated once per new candle. A candle's mark does not change after it closes. Resolution and follow-through are added as later candles close.
Forex and gold
All thresholds are ATR multiples, so EURUSD, GBPUSD, USDJPY and XAUUSD work with the defaults. H1 and above give the most meaningful results, especially on gold. Below H1 the summary line shows a note but the indicator still runs.
Inputs
Recommended minimum timeframe and warning, bars scanned, ATR. Candle classification ratios, spinning tops, one-sided dojis, minimum size. Range filter: on/off, lookback, width, tolerance, prior touches, separation. Resolution: window, follow-through distance and window. Display and colours. Alerts.
Notes
- This indicator does not open, modify or close trades. It is an analysis tool and not financial advice. Historical counts do not predict future results.
Questions and suggestions are welcome in the comments section of this product.
