PROTECTED SOURCE SCRIPT
SMC-Math by Thomas v1

📌 SMC-Math by Thomas v1 — Description
SMC-Math by Thomas v1 is a complete Smart Money Concepts toolkit designed for traders who want a clean, mathematical, and structured view of market mechanics.
Rather than relying on abstract concepts or subjective drawings, this indicator focuses on rules-based detection of:
✔ Order Blocks (OB)
✔ Fair Value Gaps (FVG)
✔ Market Structure shifts (BoS / CHoCH)
✔ HTF trend confirmation
✔ Premium / Discount arrays
✔ Equal High & Equal Low Liquidity Zones (no hinting — expiry only)
This version is engineered for stability, clarity, and performance — with fully optimized array management, timestamp-based cleanup, and a clean visual presentation suitable for both discretionary and systematic trading.
📌 Key Features
🔹 1. Order Blocks (Bullish & Bearish)
Auto-detected using fractal swing highs/lows
Optional displacement + high volume filters
Midline display option
HTF trend alignment filter
Smart expiry + broken OB cleanup
Custom opacity, buffer, and extension controls
🔹 2. Fair Value Gaps (FVG)
Bullish and bearish gap detection
HTF confirmation-based dimming
No border for a clean ICT-style visuals
Auto remove when filled
Fully rule-based
🔹 3. Market Structure (BoS / CHoCH)
Based on fractal highs/lows
Automatic labeling (small, unobtrusive)
Direction validated by HTF option
Each structure level plotted with a projected line
Smooth, clean BOS/CHOCH flow
🔹 4. Premium / Discount Zones
Auto-calculated from most recent swing high & swing low
Box shading dynamically updates each bar
Helps identify optimal trade areas (OB → FVG → PD array)
🔹 5. Liquidity Zones (Equal Highs & Equal Lows)
This tool highlights where liquidity is likely resting:
Detects Equal Highs and Equal Lows using your tolerance or max difference
Auto-creates borderless shaded boxes
Adjustable box height and extension
NO hinting logic — the box remains for exactly cleanupDelay bars, then expires
Clean and predictable behavior, ideal for rule-based setups
This is especially useful for:
identifying buy-side and sell-side liquidity pools
anticipating runs on liquidity
targeting sweeps
🔹 6. HTF Status Panel
Shows higher-timeframe trend status on the live bar:
Bullish
Bearish
Or “HTF Not Required”
Useful for aligning entries with larger market flow.
📌 How to Use SMC-Math by Thomas v1
1️⃣ Identifying Direction
Start by reading:
HTF Trend Label
BOS & CHOCH reactions
Bullish: look for HL → HH structure + bullish OBs + bullish FVGs
Bearish: look for LH → LL structure + bearish OBs + bearish FVGs
This creates your directional bias.
2️⃣ Using Order Blocks
An OB is valid when:
It appears in line with structure
HTF alignment supports it (optional toggle)
Price returns after a displacement
OB is not “broken” (indicator handles this visually)
Use OBs as:
Rebalance targets
Entry areas
Stop placement logic
3️⃣ Fair Value Gaps
FVGs appear when price dislocates and leaves inefficiency.
Use them to:
Refine entries inside OBs
Project premium/discount zones
Identify continuation zones
The indicator auto-removes FVGs when filled.
4️⃣ Liquidity Zones
Liquidity zones identify resting orders at equal highs/lows.
This version uses simple expiry logic:
Box is created when EQH/EQL forms
It remains visible for 20 bars (default)
It disappears automatically after expiry
No hint/confirmation triggers deletion
Usage tips:
Expect price to run toward these zones
Use them as targets or continuation markers
Combine with OB/FVG for confluence
5️⃣ Premium / Discount Zones
Use PD arrays to gauge:
Premium = optimal shorting zones
Discount = optimal long zones
Not trade “in the middle” unless a clear BOS or CHoCH happens
📌 Recommended Workflow
HTF Bias → Check the HTF panel
Market Structure → Identify trend continuation or reversal
Liquidity → Mark where price is likely to target
FVG → Identify imbalance zones
OB → Confirm institutional origin points
PD Arrays → Determine optimal trade location
Execute with confluence
📌 Who Is This Indicator For?
✔ Traders using ICT / SMC logic
✔ Traders wanting rule-based, non-subjective markups
✔ Traders who want automated detection without repainting
✔ Anyone who uses OB, FVG, liquidity sweeps, and structure shifts
SMC-Math by Thomas v1 is a complete Smart Money Concepts toolkit designed for traders who want a clean, mathematical, and structured view of market mechanics.
Rather than relying on abstract concepts or subjective drawings, this indicator focuses on rules-based detection of:
✔ Order Blocks (OB)
✔ Fair Value Gaps (FVG)
✔ Market Structure shifts (BoS / CHoCH)
✔ HTF trend confirmation
✔ Premium / Discount arrays
✔ Equal High & Equal Low Liquidity Zones (no hinting — expiry only)
This version is engineered for stability, clarity, and performance — with fully optimized array management, timestamp-based cleanup, and a clean visual presentation suitable for both discretionary and systematic trading.
📌 Key Features
🔹 1. Order Blocks (Bullish & Bearish)
Auto-detected using fractal swing highs/lows
Optional displacement + high volume filters
Midline display option
HTF trend alignment filter
Smart expiry + broken OB cleanup
Custom opacity, buffer, and extension controls
🔹 2. Fair Value Gaps (FVG)
Bullish and bearish gap detection
HTF confirmation-based dimming
No border for a clean ICT-style visuals
Auto remove when filled
Fully rule-based
🔹 3. Market Structure (BoS / CHoCH)
Based on fractal highs/lows
Automatic labeling (small, unobtrusive)
Direction validated by HTF option
Each structure level plotted with a projected line
Smooth, clean BOS/CHOCH flow
🔹 4. Premium / Discount Zones
Auto-calculated from most recent swing high & swing low
Box shading dynamically updates each bar
Helps identify optimal trade areas (OB → FVG → PD array)
🔹 5. Liquidity Zones (Equal Highs & Equal Lows)
This tool highlights where liquidity is likely resting:
Detects Equal Highs and Equal Lows using your tolerance or max difference
Auto-creates borderless shaded boxes
Adjustable box height and extension
NO hinting logic — the box remains for exactly cleanupDelay bars, then expires
Clean and predictable behavior, ideal for rule-based setups
This is especially useful for:
identifying buy-side and sell-side liquidity pools
anticipating runs on liquidity
targeting sweeps
🔹 6. HTF Status Panel
Shows higher-timeframe trend status on the live bar:
Bullish
Bearish
Or “HTF Not Required”
Useful for aligning entries with larger market flow.
📌 How to Use SMC-Math by Thomas v1
1️⃣ Identifying Direction
Start by reading:
HTF Trend Label
BOS & CHOCH reactions
Bullish: look for HL → HH structure + bullish OBs + bullish FVGs
Bearish: look for LH → LL structure + bearish OBs + bearish FVGs
This creates your directional bias.
2️⃣ Using Order Blocks
An OB is valid when:
It appears in line with structure
HTF alignment supports it (optional toggle)
Price returns after a displacement
OB is not “broken” (indicator handles this visually)
Use OBs as:
Rebalance targets
Entry areas
Stop placement logic
3️⃣ Fair Value Gaps
FVGs appear when price dislocates and leaves inefficiency.
Use them to:
Refine entries inside OBs
Project premium/discount zones
Identify continuation zones
The indicator auto-removes FVGs when filled.
4️⃣ Liquidity Zones
Liquidity zones identify resting orders at equal highs/lows.
This version uses simple expiry logic:
Box is created when EQH/EQL forms
It remains visible for 20 bars (default)
It disappears automatically after expiry
No hint/confirmation triggers deletion
Usage tips:
Expect price to run toward these zones
Use them as targets or continuation markers
Combine with OB/FVG for confluence
5️⃣ Premium / Discount Zones
Use PD arrays to gauge:
Premium = optimal shorting zones
Discount = optimal long zones
Not trade “in the middle” unless a clear BOS or CHoCH happens
📌 Recommended Workflow
HTF Bias → Check the HTF panel
Market Structure → Identify trend continuation or reversal
Liquidity → Mark where price is likely to target
FVG → Identify imbalance zones
OB → Confirm institutional origin points
PD Arrays → Determine optimal trade location
Execute with confluence
📌 Who Is This Indicator For?
✔ Traders using ICT / SMC logic
✔ Traders wanting rule-based, non-subjective markups
✔ Traders who want automated detection without repainting
✔ Anyone who uses OB, FVG, liquidity sweeps, and structure shifts
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 ただし、制限なく自由に使用できます – 詳細はこちらでご確認ください。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。