Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

JAFX Advanced SMC (Smart Money Concepts) - indicator for MetaTrader 5

Jony Islam
Jony Islam
5 (2)
I am Jony Islam, Founder and MQL5 EA Developer at ThnEA, specializing in automated trading systems for MetaTrader 5.
My work focuses on algorithmic trading, Expert Advisor development, Gold (XAUUSD), Forex, systematic trade execution, and risk management.
Views:
70
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Overview

JAFX Advanced SMC is a comprehensive, professional-grade indicator designed for traders who utilize Smart Money Concepts (SMC) and ICT trading methodologies. This tool eliminates the need for manual charting by automatically mapping out market structure, order blocks, and key liquidity zones across multiple timeframes.

The indicator is built with performance in mind, caching ATR data and limiting chart object creation to the live candle, ensuring smooth operation even on historical data loads.

Key Features

  • Market Structure (BOS & CHoCH): Automatically detects Swing structure and Internal structure breaks (Break of Structure and Change of Character). You can filter to show only BOS, only CHoCH, or both.
  • Order Blocks (OB): Identifies both Internal (reaction zones) and Swing (institutional) order blocks. The zones are dynamically drawn starting exactly from the confirming break, with custom transparency and border styles.
  • Premium & Discount Zones: Automatically calculates the range between the last confirmed Swing High and Swing Low, highlighting Premium (sell zone), Equilibrium, and Discount (buy zone) areas.
  • Equal Highs / Lows (EQH/EQL): Detects liquidity pools by identifying consecutive swings that form at nearly the same price level, using an ATR-based threshold.
  • Strong/Weak High & Low: Labels swing points as HH, HL, LH, LL and dynamically marks Strong/Weak levels based on the current trend direction.
  • Multi-Timeframe Dashboard: A sleek, real-time dashboard that displays the current market bias for the chart timeframe, a Higher Timeframe (HTF), and an Intra Timeframe (ITF). It shows Swing bias, Internal bias, and the latest CHoCH/BOS signals.
  • Look-Back Period: Limits historical analysis to a specific number of bars, reducing visual clutter and focusing only on recent market data.

How It Works (Logic)

  • Pivot Detection: Uses symmetric left-and-right pivot confirmation. Wide-range bars (range >= 2*ATR) are given special handling to detect climax pivots accurately.
  • OB Generation: When a structure breaks, the indicator scans the bars between the broken pivot and the confirming break to find the most extreme candle (high/low). The OB is only drawn after the break is confirmed, preventing repainting.
  • Mitigation: Order blocks are automatically removed when price closes or wicks beyond the OB level, depending on your mitigation settings.
JAFX Advanced SMCJAFX Advanced SMC

    Input Parameters

    • General: Toggle between Historical/Present modes, change color styles, and enable/disable candle coloring.
    • Structure: Choose which timeframes to show, adjust pivot lengths (default 50 for Swing, 5 for Internal), and enable/disable HH/HL text labels.
    • Order Blocks: Set the maximum number of OBs to display, choose mitigation type (Close or High/Low), and customize OB colors and transparency.
    • Dashboard: Adjust the dashboard's X/Y position, font size, and set your preferred HTF and ITF timeframes.

    Recommendations

    This indicator works seamlessly on all symbols (Forex, Indices, Crypto, Stocks) and timeframes. For best results with the dashboard, it is recommended to set the HTF (Higher Timeframe) higher than your current chart (e.g., H4 or D1) and the ITF (Intra Timeframe) lower than your chart (e.g., M15 or M5).

    MT5 Risk Reward Calculator MT5 Risk Reward Calculator

    A free MT5 script to calculate position size, risk amount, and risk-to-reward ratio visually on the chart.

    Exponential Trend Channel Indicator Exponential Trend Channel Indicator

    On a linear MT5 chart, a trend that grows or falls by a steady percentage is a curve, and a straight channel misses it. This indicator draws the real exponential curve, fitted on closed bars to the cleanest of 19 look-back windows, with deviation zones, a projection ahead and a card with the fit, the trend pace and the price position.

    Accelerator Oscillator (AC) Accelerator Oscillator (AC)

    The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

    MACD Signals MACD Signals

    Indicator edition for new platform.