Heikin Ashi Inside Candle Breakout Signal
This custom Pine Script indicator displays Heikin Ashi candles alongside breakout signals based on inside bars. Inside bars occur when the current candle's high is lower than the previous candle's high, and the current candle's low is higher than the previous candle's low. These inside bars indicate a consolidation period, often followed by a strong breakout in either direction.
Key Features:
Heikin Ashi Candles: The indicator plots Heikin Ashi candles, which are calculated using the open, high, low, and close values of the regular candlesticks, providing a smoothed representation of price action.
Green Candles: Indicate bullish price action (when the Heikin Ashi close is higher than the open).
Red Candles: Indicate bearish price action (when the Heikin Ashi close is lower than the open).
Inside Bar Condition: Identifies when a candle's high is lower than the previous high, and its low is higher than the previous low. This signifies a consolidation pattern that might be followed by a breakout.
Breakout Signals:
Buy Signal: Triggered when the price breaks above the previous high after an inside bar.
Sell Signal: Triggered when the price breaks below the previous low after an inside bar.
Background Color: The chart background color is shaded to indicate the presence of inside bars, making it easy to spot consolidation zones.
How to Use:
Buy Signal: A breakout above the previous high is a potential buy signal.
Sell Signal: A breakout below the previous low is a potential sell signal.
This indicator is ideal for traders looking to capture breakouts after periods of consolidation. It can be used for both short-term and long-term trading strategies.