MQL5 Market Structure
Build the part of an SMC indicator that decides what the market is doing: confirmed swings, internal and swing legs, BOS, CHoCH, confluence and trend state. The code in this cluster is designed to be deterministic on closed bars.
The rule for this cluster
Every article assumes a series-sorted rates array where index zero is the newest bar. A swing is confirmed only after the required bars on the right have closed. A break is evaluated on a closed bar. The trend state changes only after a confirmed swing is broken. If those three rules are not true, the rest of the SMC engine cannot be trusted.
Read the pillar guide first, then work through the four articles in order.
Educational content. Test all code in MetaEditor and Strategy Tester.
Choose the next useful step
Most visitors arrive with one question: build, test, price, or trust. These shortcuts keep the path practical.
Go deeper before you build, download or automate
Hand-picked engineering articles, indicator breakdowns and trading-system tools so visitors keep exploring instead of leaving after one page.
Pine Script to MT4/MT5 Conversion Planner
Analyze Pine strategies, repainting risk, TradingView alert bridges, MTF synchronization and the correct MQL4/MQL5 build path before paying for conversion.
Open planner
3-in-1 MT5 Indicator Bundle
12H Bias Engine, Smart Money Institutional Flow Dashboard and D1/H1 pending-signal logic with MQ5 + EX5 source included via Etsy.
MT5 Bank Orders Institutional Flow Dashboard
Supply/demand zones, BOS/CHoCH, liquidity levels, FVG, equal highs/lows and confirmed trade-plan logic explained with EX5 download.
MT5 Asia London NY Liquidity Engine
Asia range, London raid and New York continuation/reversal planning with internal session backtest stats and entry/SL/TP dashboard.
Interactive Brokers RSI Pair Trader
Tkinter desktop trading workflow, TWS API connection handling, RSI pair logic, risk controls and custom IBKR development positioning.
XAUUSD M30 CSV Data For Backtesting
Use clean MT5 historical data for Python backtests, strategy validation, spread checks and realistic gold EA research workflows.