OPEN-SOURCE SCRIPT

Equal High and Low Finder

Updated
The Matching Close / Equal High Low Finder indicator identifies candles within a specified lookback period that have matching close prices while satisfying specific conditions:

Matching Candle Types:

Only matches bullish candles (close > open) with other bullish candles.
Only matches bearish candles (close < open) with other bearish candles.
Intermediate Candle Condition:

Bullish matches: No intermediate candle between the two matching candles can have a higher close price than the first candle.
Bearish matches: No intermediate candle between the two matching candles can have a lower close price than the first candle.
Gap Between Matches: Ensures at least one intermediate candle exists with a close price different from the matched candles.

Customizable Features:

Adjustable lookback period.
Configurable line style, width, and colors for bullish and bearish matches.
This indicator visually connects the matching candles with lines, offering a clear visual cue for price behavior.
Release Notes
The Matching Close or Equal High Low Finder indicator identifies candles within a specified lookback period that have matching close prices while satisfying specific conditions:

Matching Candle Types:

Only matches bullish candles (close > open) with other bullish candles.
Only matches bearish candles (close < open) with other bearish candles.
Intermediate Candle Condition:

Bullish matches: No intermediate candle between the two matching candles can have a higher close price than the first candle.
Bearish matches: No intermediate candle between the two matching candles can have a lower close price than the first candle.
Gap Between Matches: Ensures at least one intermediate candle exists with a close price different from the matched candles.

Customizable Features:

Adjustable lookback period.
Configurable line style, width, and colors for bullish and bearish matches.
This indicator visually connects the matching candles with lines, offering a clear visual cue for price behavior.
Candlestick analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer