Discussing the article: "Swing Extremes and Pullbacks in MQL5 (Part 3): Defining Structural Validity Beyond Simple Highs/Lows"
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Swing Extremes and Pullbacks in MQL5 (Part 3): Defining Structural Validity Beyond Simple Highs/Lows.
This article presents an MQL5 Expert Advisor that upgrades raw swing detection to a rule-based Structural Validation Engine. Swings are confirmed by a break of structure, displacement, liquidity sweeps, or time-based respect, then linked to a liquidity map and a structural state machine. The result is context-aware entries and stops anchored to validated levels, helping filter noise and systematize execution.
The EA operates on a five-layer architecture designed to filter market noise and identify only structurally significant price levels. The process begins with Raw Swing Detection, where potential swing highs and lows are identified using an N-bar lookback. However, these are merely candidates—they are not yet considered valid structures. The Structural Validation Engine applies four criteria: momentum-based break of structure, displacement (impulse candle strength), liquidity sweep (wick beyond a prior level, then reverse), and time-based respect. A swing is only marked as "valid" if it satisfies at least one of these conditions, ensuring that the system ignores minor fluctuations and focuses only on levels where genuine market interest has been demonstrated.
Only swings that demonstrate Break of Structure, Displacement, Liquidity Sweep, or Time-Based Respect become valid—filtering noise from genuine market structure.
Author: Hlomohang John Borotho