OPEN-SOURCE SCRIPT

Double Inside Body Candles with Box & Alert + 5-Bar Lines

769
This indicator identifies Double Inside Body Candle patterns, where:

Candle 1 is completely inside Candle 2,

Candle 2 is completely inside Candle 3 (the parent candle),

Candle 3 has a real body (not a doji or negligible body size).

Once the pattern is detected:

A label appears below the current candle.

A highlight box is drawn around Candle 3 (the parent candle) body range.

Horizontal lines are drawn from the top and bottom of Candle 3’s body and extend forward for exactly 5 bars to visualize potential breakout levels.

The script also detects and highlights breakouts:

🔼 Bullish breakout: if price closes above Candle 3's body high.

🔽 Bearish breakout: if price closes below Candle 3's body low.

Alerts are available for:

Double Inside Body pattern detection

Bullish breakout

Bearish breakout

Traders can use this script to identify consolidation periods (double inside bars), then monitor for breakout opportunities in either direction, using the 5-bar lines as short-term breakout levels.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.