OPEN-SOURCE SCRIPT

🔥 SMC Reversal Engine v3.5 – Clean FVG + Dashboard

210
Script Description
This script is designed to visually decode market structure using Higher Timeframe (HTF) fractals and structural pivots (HH, HL, LL, LH). It’s a comprehensive tool for traders who want to master the core principles of price action before relying on other indicators or overlays.

The dashboard prominently displays the current trend bias, last swing high/low types, and predictive next expectations. Additionally, it calculates a real-time prediction accuracy rate, empowering traders to reflect on market behavior patterns and continuously improve their understanding of price structure.

It also features Fair Value Gap (FVG) zones, filtered by trend direction, to provide potential imbalance zones for advanced price action insights.

Why Structure First?
Before diving into complex indicators or fancy overlays, traders must grasp the foundation of price action:
Structure drives trend continuation or reversal
It reveals the story behind market moves
It’s the “why” behind every swing and impulse

By internalizing structure (HH, HL, LH, LL sequences), you gain a framework for where price might head next – far more reliable than blindly chasing indicator signals.

Key Features
Structure Dashboard
Shows trend direction (Bullish 🟢 or Bearish 🔴)
Last swing high/low type and sequence count
Predicts what structure is likely to form next
Displays a real-time prediction accuracy rate

HTF High/Low Reference
Optional HTF lines for context
Fair Value Gap (FVG) Zones

Visual imbalance zones for continuation trades
Automatically extend based on market context
Tap-based entry labels when price revisits FVG

Alerts
Automated alerts for bullish/bearish FVGs

How to Use
Add the Indicator
Click “Indicators” in TradingView
Search and add this script
Adjust inputs (HTF timeframe, fractal sensitivity, dashboard position, etc.)
Read the Dashboard

Identify the current trend and sequence
Watch for the next expected structure (HL or LL)
Use this as a mental framework for your trades

Focus on the Message
The dashboard’s predictive message is a guideline, not a trade signal
It encourages you to observe how structure behaves

Use FVG Zones for Entry/Target Ideas
These provide potential continuation or rejection areas

Confirm with your own strategy

Final Thoughts
This script is meant to help you learn to read the market’s heartbeat – price structure.
Use it as a compass rather than a rigid system
Combine with your broader trading knowledge
The prediction accuracy rate is a motivational tool – it helps you see how well structure-based expectations align with price

Fractal Pairs Explained
The script defines fractal highs and lows using a sensitivity setting (fractalSensitivity, default=3). This looks for pivot points in price action where:

Fractal High
high[len] > high[len + 1] and high[len] > high[len - 1]
(…the highest high in a small window)

Fractal Low
low[len] < low[len + 1] and low[len] < low[len - 1]
(…the lowest low in a small window)

Fractal Pair Types
When these fractals occur, the script identifies the following structure pairs:

Type When it Happens Meaning
HH Higher High after previous high Confirms an uptrend push
LH Lower High below previous high Signs of trend weakening
HL Higher Low above previous low Support for bullish continuation
LL Lower Low below previous low Confirms bearish continuation

💡 How They Work Together
In a bullish environment, you’ll typically see a sequence of HL → HH (structure steps higher).

In a bearish environment, you’ll see LH → LL (structure steps lower).

The dashboard shows these pairs and predicts what’s likely next based on the ongoing sequence.

Practical Application
The script visually labels each fractal pair directly on the chart (e.g., “HH” for Higher High). This makes it easy to train your eye to see the ongoing market structure and understand how trends build or break.

Suggested Fractal Sensitivity by Timeframe
Timeframe Suggested fractalSensitivity
1 min – 5 min 1–2 (more reactive, smaller swings)
15 min – 1 hour 2–3 (good balance of noise reduction & detail)
4 hour – 1 day 3–4 (captures bigger pivots, filters noise)
1 week – 1 month 4–5 (macro structure only, very filtered)

How to Use These Pairs
Lower timeframes need a lower sensitivity (1–2) because price is more “jumpy,” and you want to see even small swings.
Higher timeframes need a higher sensitivity (3–4+) to avoid false pivots from minor fluctuations.

For example:

1-day chart? Start with fractalSensitivity=3 or 4 to see major daily swing highs/lows.
5-minute chart? fractalSensitivity=1 or 2 is usually enough to catch intraday fractal pivots.

Why It Matters?
It ensures the script adapts to your trading timeframe, so you see meaningful structure.

Otherwise, if your sensitivity is too high or too low for your timeframe, you’ll either get too much noise or miss the important swings.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.