OPEN-SOURCE SCRIPT
ICT Market Structure BREAKS + OB Retest [JPT]

🔷 OVERVIEW
ICT Market Structure Blocks + OB Retest [JPT] Trade market structure with a clean, rule-based approach combining Market Structure Breaks (MSB), Order Blocks, and OB Retests — designed to help traders identify potential continuation setups without unnecessary chart clutter.
🔹 Key Features
🔹 Market Structure Break (MSB)
• Identifies confirmed swing highs and swing lows.
• Detects bullish and bearish structure breaks.
• Displays clear MSB ↑ / MSB ↓ levels directly on the chart.
• Uses confirmed pivots to reduce noisy structure changes.
🔹 Order Block Detection
• Automatically searches for the relevant opposing candle before the structure break.
• Creates bullish BU-OB and bearish BE-OB zones.
• Zones can be extended forward for potential future retests.
• Broken order blocks can automatically be removed.
🔹 OB Retest Detection
• Identifies when price returns to a previously established Order Block.
• Provides separate alert conditions for bullish and bearish OB retests.
• Useful for traders looking for confirmation after a market structure break.
🔹 Displacement Filter
• Optional ATR-based displacement confirmation.
• Helps filter weaker structure breaks and focus on stronger candles.
• Fully adjustable from the settings.
🔹 Customizable Settings
You can adjust:
• Swing Length
• OB Search Lookback
• Maximum OB Zones
• Zone Extension
• ATR Length
• Minimum Body / ATR
• Displacement Filter
• Bullish/Bearish OB colors
• Structure visibility
• Swing labels
•Automatic broken-zone deletion
🔹 Basic Trading Concept
Bullish setup:
Bullish MSB → Bullish OB → Price Returns to OB → Potential Long Area
Bearish setup:
Bearish MSB → Bearish OB → Price Returns to OB → Potential Short Area
This indicator is intended as a market-structure and price-action tool, not a guaranteed buy/sell system. Always backtest the settings for your specific market and timeframe and combine the signals with your own risk-management rules.
🔔 Alerts
Available alerts include:
Bullish MSB
Bearish MSB
Bullish OB Retest
Bearish OB Retest
Recommended starting point: try a Swing Length of 8 and adjust the OB/ATR settings according to the volatility of your market.
Disclaimer: This indicator is for educational and analytical purposes only. It does not provide guaranteed profitable signals or financial advice. Trading involves substantial risk, and past performance does not guarantee future results.
ICT Market Structure Blocks + OB Retest [JPT] Trade market structure with a clean, rule-based approach combining Market Structure Breaks (MSB), Order Blocks, and OB Retests — designed to help traders identify potential continuation setups without unnecessary chart clutter.
🔹 Key Features
🔹 Market Structure Break (MSB)
• Identifies confirmed swing highs and swing lows.
• Detects bullish and bearish structure breaks.
• Displays clear MSB ↑ / MSB ↓ levels directly on the chart.
• Uses confirmed pivots to reduce noisy structure changes.
🔹 Order Block Detection
• Automatically searches for the relevant opposing candle before the structure break.
• Creates bullish BU-OB and bearish BE-OB zones.
• Zones can be extended forward for potential future retests.
• Broken order blocks can automatically be removed.
🔹 OB Retest Detection
• Identifies when price returns to a previously established Order Block.
• Provides separate alert conditions for bullish and bearish OB retests.
• Useful for traders looking for confirmation after a market structure break.
🔹 Displacement Filter
• Optional ATR-based displacement confirmation.
• Helps filter weaker structure breaks and focus on stronger candles.
• Fully adjustable from the settings.
🔹 Customizable Settings
You can adjust:
• Swing Length
• OB Search Lookback
• Maximum OB Zones
• Zone Extension
• ATR Length
• Minimum Body / ATR
• Displacement Filter
• Bullish/Bearish OB colors
• Structure visibility
• Swing labels
•Automatic broken-zone deletion
🔹 Basic Trading Concept
Bullish setup:
Bullish MSB → Bullish OB → Price Returns to OB → Potential Long Area
Bearish setup:
Bearish MSB → Bearish OB → Price Returns to OB → Potential Short Area
This indicator is intended as a market-structure and price-action tool, not a guaranteed buy/sell system. Always backtest the settings for your specific market and timeframe and combine the signals with your own risk-management rules.
🔔 Alerts
Available alerts include:
Bullish MSB
Bearish MSB
Bullish OB Retest
Bearish OB Retest
Recommended starting point: try a Swing Length of 8 and adjust the OB/ATR settings according to the volatility of your market.
Disclaimer: This indicator is for educational and analytical purposes only. It does not provide guaranteed profitable signals or financial advice. Trading involves substantial risk, and past performance does not guarantee future results.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
📈 FREE TELEGRAM CHANNEL
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
📈 FREE TELEGRAM CHANNEL
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
🥇 Free Daily Forex, Gold & BTC Trade Signals
📚 Daily Trading Lessons & Technical Analysis
Learn, improve, and follow the market with us — completely FREE.
📲 Join Now: t.me/JosProTrader_050
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。