OPEN-SOURCE SCRIPT
SMC CHOCH BOS Dual Structure + Candle Color v6

📊 SMC CHOCH & BOS Dual Structure Indicator — User Guide
This indicator is designed to map market structure using Smart Money Concepts (SMC), combining:
CHOCH (Change of Character)
BOS (Break of Structure)
Swing Structure (macro)
Internal Structure (micro)
Dynamic candle coloring based on structural shifts
It provides a complete framework to understand trend shifts, confirmations, and execution timing.
🧠 CORE CONCEPTS
🔹 CHOCH (Change of Character)
Represents a potential reversal in market direction.
Bullish CHOCH → Market shifts from bearish to bullish
Bearish CHOCH → Market shifts from bullish to bearish
👉 This is the early signal, but not always confirmed.
🔹 BOS (Break of Structure)
Represents trend continuation or confirmation.
Occurs when price breaks previous structure in the direction of the trend
The first BOS after a CHOCH is especially important
👉 This is the confirmation phase.
⚙️ SETTINGS EXPLAINED
🔸 Show Structure
Swing → Displays macro structure (clean, less noise)
Internal → Displays micro structure (faster, more signals)
Both → Combines both for full context
👉 Recommended: Both
🔸 Swing Structure Length
Controls the sensitivity of macro structure.
Higher value → smoother, fewer signals
Lower value → more reactive
👉 Recommended: 8–15
🔸 Internal Structure Length
Controls micro structure detection.
Lower value → faster signals
Higher value → more filtering
👉 Recommended: 2–5
🔸 Confirm Break By Candle Close
ON → Break only confirmed after candle closes (more reliable)
OFF → Break detected instantly (faster, more aggressive)
👉 Recommended: ON
🔸 Candle Color Based On
Defines which structure controls candle coloring:
Swing → slower, trend-based coloring
Internal → faster, execution-based coloring
👉 Recommended:
Swing → for bias
Internal → for entries
🔸 Change Candle Color On
Defines when the trend/color shifts:
CHOCH
Faster reaction
More signals
Higher risk
First BOS After CHOCH
More confirmation
Fewer signals
Higher probability
👉 Recommended: First BOS After CHOCH
🔸 Color Candles
ON → candles follow structural direction
OFF → structure only (lines + labels)
🔸 Colors
Customize:
Swing bullish/bearish
Internal bullish/bearish
Candle colors
🔸 Show BOS/CHOCH Text
Displays text labels directly on structure lines:
No background
Centered on the line
Clean visual style
📈 HOW TO USE (PROFESSIONAL APPROACH)
🔹 1. Define Direction (Swing Structure)
Use Swing CHOCH + BOS to identify overall bias
Only trade in the direction of Swing trend
🔹 2. Execute with Internal Structure
Wait for Internal CHOCH
Then confirm with Internal BOS
👉 This is your entry trigger
🔹 3. Best Setup (High Probability)
✔ Swing trend bullish
✔ Internal CHOCH (pullback ends)
✔ First BOS confirms continuation
👉 That’s your trade
⚠️ COMMON MISTAKES
❌ Trading CHOCH alone
❌ Ignoring higher timeframe structure
❌ Entering after extended moves
❌ Using Internal signals against Swing trend
🔥 SIMPLE RULE SET
CHOCH = potential shift
BOS = confirmation
Swing = direction
Internal = execution
🎯 FINAL THOUGHT
This indicator is not just for signals —
it’s a market structure framework.
If used correctly, it helps you:
Avoid late entries
Trade with structure, not emotion
Align with institutional flow
This indicator is designed to map market structure using Smart Money Concepts (SMC), combining:
CHOCH (Change of Character)
BOS (Break of Structure)
Swing Structure (macro)
Internal Structure (micro)
Dynamic candle coloring based on structural shifts
It provides a complete framework to understand trend shifts, confirmations, and execution timing.
🧠 CORE CONCEPTS
🔹 CHOCH (Change of Character)
Represents a potential reversal in market direction.
Bullish CHOCH → Market shifts from bearish to bullish
Bearish CHOCH → Market shifts from bullish to bearish
👉 This is the early signal, but not always confirmed.
🔹 BOS (Break of Structure)
Represents trend continuation or confirmation.
Occurs when price breaks previous structure in the direction of the trend
The first BOS after a CHOCH is especially important
👉 This is the confirmation phase.
⚙️ SETTINGS EXPLAINED
🔸 Show Structure
Swing → Displays macro structure (clean, less noise)
Internal → Displays micro structure (faster, more signals)
Both → Combines both for full context
👉 Recommended: Both
🔸 Swing Structure Length
Controls the sensitivity of macro structure.
Higher value → smoother, fewer signals
Lower value → more reactive
👉 Recommended: 8–15
🔸 Internal Structure Length
Controls micro structure detection.
Lower value → faster signals
Higher value → more filtering
👉 Recommended: 2–5
🔸 Confirm Break By Candle Close
ON → Break only confirmed after candle closes (more reliable)
OFF → Break detected instantly (faster, more aggressive)
👉 Recommended: ON
🔸 Candle Color Based On
Defines which structure controls candle coloring:
Swing → slower, trend-based coloring
Internal → faster, execution-based coloring
👉 Recommended:
Swing → for bias
Internal → for entries
🔸 Change Candle Color On
Defines when the trend/color shifts:
CHOCH
Faster reaction
More signals
Higher risk
First BOS After CHOCH
More confirmation
Fewer signals
Higher probability
👉 Recommended: First BOS After CHOCH
🔸 Color Candles
ON → candles follow structural direction
OFF → structure only (lines + labels)
🔸 Colors
Customize:
Swing bullish/bearish
Internal bullish/bearish
Candle colors
🔸 Show BOS/CHOCH Text
Displays text labels directly on structure lines:
No background
Centered on the line
Clean visual style
📈 HOW TO USE (PROFESSIONAL APPROACH)
🔹 1. Define Direction (Swing Structure)
Use Swing CHOCH + BOS to identify overall bias
Only trade in the direction of Swing trend
🔹 2. Execute with Internal Structure
Wait for Internal CHOCH
Then confirm with Internal BOS
👉 This is your entry trigger
🔹 3. Best Setup (High Probability)
✔ Swing trend bullish
✔ Internal CHOCH (pullback ends)
✔ First BOS confirms continuation
👉 That’s your trade
⚠️ COMMON MISTAKES
❌ Trading CHOCH alone
❌ Ignoring higher timeframe structure
❌ Entering after extended moves
❌ Using Internal signals against Swing trend
🔥 SIMPLE RULE SET
CHOCH = potential shift
BOS = confirmation
Swing = direction
Internal = execution
🎯 FINAL THOUGHT
This indicator is not just for signals —
it’s a market structure framework.
If used correctly, it helps you:
Avoid late entries
Trade with structure, not emotion
Align with institutional flow
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.