OPEN-SOURCE SCRIPT
Inside Bar + Harami Combo

This indicator visually highlights Inside Bars, Outside Bars, and Harami candlestick patterns directly on your chart using clean color-coded candles — no labels, no shapes, just visual clarity.
It helps traders quickly identify potential reversal and continuation setups by coloring candles according to the detected pattern type.
🔍 Patterns Detected
🟨 Inside Bar — Current candle’s range is completely inside the previous candle’s range.
Often signals price contraction before a breakout.
💗 Outside Bar — Current candle’s high and low exceed the previous candle’s range.
Indicates volatility expansion and possible trend continuation.
🟩 Bullish Harami — A small bullish candle within the body of a prior bearish candle.
Suggests potential reversal to the upside.
🟥 Bearish Harami — A small bearish candle within the body of a prior bullish candle.
Suggests potential reversal to the downside.
⚙️ Features
Customizable colors for each pattern type.
Simple overlay visualization — no shapes, no labels, just colored candles.
Harami colors automatically override Inside/Outside colors when both occur on the same bar.
Lightweight logic for smooth performance on any timeframe or symbol.
💡 How to Use
Apply the indicator to your chart.
Configure colors in the settings panel if desired.
Watch for highlighted candles:
Inside Bars often precede breakouts.
Harami patterns can mark reversal zones.
Combine with trend tools (like moving averages) to confirm setups.
⚠️ Note
This indicator is for visual pattern detection and educational use only.
Always combine candlestick signals with broader technical or market context before trading decisions.
It helps traders quickly identify potential reversal and continuation setups by coloring candles according to the detected pattern type.
🔍 Patterns Detected
🟨 Inside Bar — Current candle’s range is completely inside the previous candle’s range.
Often signals price contraction before a breakout.
💗 Outside Bar — Current candle’s high and low exceed the previous candle’s range.
Indicates volatility expansion and possible trend continuation.
🟩 Bullish Harami — A small bullish candle within the body of a prior bearish candle.
Suggests potential reversal to the upside.
🟥 Bearish Harami — A small bearish candle within the body of a prior bullish candle.
Suggests potential reversal to the downside.
⚙️ Features
Customizable colors for each pattern type.
Simple overlay visualization — no shapes, no labels, just colored candles.
Harami colors automatically override Inside/Outside colors when both occur on the same bar.
Lightweight logic for smooth performance on any timeframe or symbol.
💡 How to Use
Apply the indicator to your chart.
Configure colors in the settings panel if desired.
Watch for highlighted candles:
Inside Bars often precede breakouts.
Harami patterns can mark reversal zones.
Combine with trend tools (like moving averages) to confirm setups.
⚠️ Note
This indicator is for visual pattern detection and educational use only.
Always combine candlestick signals with broader technical or market context before trading decisions.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.