OPEN-SOURCE SCRIPT
Inside Bar Breakout ( candlestick pattern).

📌 What Is This Indicator?
BOIB Pro identifies a very strict form of inside bar:
✅ The inside bar candle’s entire range (body + wicks) must be inside the BODY of the previous candle (mother candle).
❌ If even a single wick is outside the mother body, the setup is rejected.
This filters out weak and noisy inside bars and focuses only on true compression candles.
⸻
📐 Pattern Rules (Strict)
1️⃣ Mother Candle
• The candle immediately before the inside bar
2️⃣ Body-Only Inside Bar (BOIB)
A valid BOIB must satisfy:
• Inside bar high ≤ mother candle body high
• Inside bar low ≥ mother candle body low
⚠️ Normal inside bars (inside wicks only) are ignored.
⸻
⏱️ Breakout Window Logic
After a valid BOIB forms:
• The indicator waits for the next 1 to 5 candles (user-configurable)
• Entry is triggered only if price CLOSES outside the BOIB range
✅ Long Signal
• Candle closes above BOIB high
✅ Short Signal
• Candle closes below BOIB low
If no breakout occurs within the window → setup expires automatically
⸻
🎯 Entry, Stop Loss & Take Profit Logic
Once a valid breakout/breakdown occurs, the indicator automatically draws a professional trade template:
Entry
• At the close of the breakout candle
Stop Loss
• Long → below BOIB low
• Short → above BOIB high
• Optional buffer:
• ATR-based
• Percentage-based
• Or none
Take Profits
• TP1: Risk-Reward based (default 1R)
• TP2: Extended target (default 2R)
All levels are clearly visualized using:
• Horizontal price lines
• Risk and reward boxes
• Informational labels
⸻
📊 Best Use Cases
• Crypto (BTC, ETH, major alts)
• Timeframes:
• Scalping: 5m
• Day trading: 15m / 30m
• Works best when combined with:
• Market structure
• Trend bias
• Support / resistance
⸻
⚠️ Important Notes
• This is NOT an auto-trading system
• Signals should always be used with:
• Proper risk management
• Market context
• Inside bars in sideways or low-volume markets may fail
⸻
📚 Educational Purpose Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice.
Trading involves risk, and past behavior does not guarantee future results.
BOIB Pro identifies a very strict form of inside bar:
✅ The inside bar candle’s entire range (body + wicks) must be inside the BODY of the previous candle (mother candle).
❌ If even a single wick is outside the mother body, the setup is rejected.
This filters out weak and noisy inside bars and focuses only on true compression candles.
⸻
📐 Pattern Rules (Strict)
1️⃣ Mother Candle
• The candle immediately before the inside bar
2️⃣ Body-Only Inside Bar (BOIB)
A valid BOIB must satisfy:
• Inside bar high ≤ mother candle body high
• Inside bar low ≥ mother candle body low
⚠️ Normal inside bars (inside wicks only) are ignored.
⸻
⏱️ Breakout Window Logic
After a valid BOIB forms:
• The indicator waits for the next 1 to 5 candles (user-configurable)
• Entry is triggered only if price CLOSES outside the BOIB range
✅ Long Signal
• Candle closes above BOIB high
✅ Short Signal
• Candle closes below BOIB low
If no breakout occurs within the window → setup expires automatically
⸻
🎯 Entry, Stop Loss & Take Profit Logic
Once a valid breakout/breakdown occurs, the indicator automatically draws a professional trade template:
Entry
• At the close of the breakout candle
Stop Loss
• Long → below BOIB low
• Short → above BOIB high
• Optional buffer:
• ATR-based
• Percentage-based
• Or none
Take Profits
• TP1: Risk-Reward based (default 1R)
• TP2: Extended target (default 2R)
All levels are clearly visualized using:
• Horizontal price lines
• Risk and reward boxes
• Informational labels
⸻
📊 Best Use Cases
• Crypto (BTC, ETH, major alts)
• Timeframes:
• Scalping: 5m
• Day trading: 15m / 30m
• Works best when combined with:
• Market structure
• Trend bias
• Support / resistance
⸻
⚠️ Important Notes
• This is NOT an auto-trading system
• Signals should always be used with:
• Proper risk management
• Market context
• Inside bars in sideways or low-volume markets may fail
⸻
📚 Educational Purpose Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice.
Trading involves risk, and past behavior does not guarantee future results.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.