Using XGBoost to Filter Smart Money Concept Trading Signals
Summary
This article describes an automated pipeline that combines Smart Money Concepts with a machine-learning filter. A Python process retrieves historical XAUUSD hourly bars, detects Order Block, Fair Value Gap, and Break of Structure events, labels events by trade outcomes, and builds twelve features covering setup geometry, momentum, session timing, and trend context. An XGBoost classifier is trained offline, exported to ONNX, and embedded in an MQL5 Expert Advisor.
At runtime, the EA detects setups, scores them with the model, and trades only when confidence passes a threshold. It also describes volatility-aware stop and target sizing, trailing stops, duplicate-entry prevention, and a chart panel that displays signal source and model confidence. The article outlines data preparation and deployment, but the supplied material gives no quantified out-of-sample performance or detailed validation results. Its effectiveness therefore depends on the quality of event labels, consistency between training and live signal logic, and testing that accounts for costs and overfitting.
Key ideas
- The pipeline trains an XGBoost classifier on historical SMC events labeled by trade outcomes.
- The model uses features describing setup geometry, momentum, session timing, and trend context.
- The trained model is exported to ONNX and embedded in an MQL5 Expert Advisor for signal filtering.
- The EA combines confidence thresholds with volatility-aware stops, targets, and trailing management.
- The article describes implementation but does not provide quantified evidence that the approach is profitable.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.