Articles

Developing Statistical Market Inflection Forecasting Indicator for MetaTrader 5

An MQL5 indicator forecasts where a movement is likely to terminate and how far the opposite leg has typically traveled, using statistics from completed moves on the same symbol and timeframe. It detects confirmed pivots, takes a single snapshot, selects similar historical observations, and reads

From Evidence to Execution (Part 2): Turning MetaTrader 5 AI Strategy Logs into Robust Rule Based EA for MetaTrader 5

This article turns the Part 1 evidence into a working MQL5 Expert Advisor. It formalizes entry conditions, designs direction-aware stop loss and take profit, and stress-tests the combined logic before coding, with every rule linked to measured features. Readers receive a reproducible implementation

Integrating MQL5 with Data Processing Packages (Part 11): Multi-Timeframe Causality Detection using Granger Analysis for MetaTrader 5

This article implements a multi‑timeframe Granger causality monitor for MetaTrader 5. A Jupyter notebook tests predefined timeframe pairs, selects lags, applies multiple‑testing control, and exports a calibration table. An MQL5 Expert Advisor reloads the setup, recomputes the F‑test live on rolling

From Evidence to Execution (Part 1): How to Log, Measure, and Decode a Trading Strategy Inside MetaTrader 5 AI for MetaTrader 5

An evidence-first workflow for Range Breakout in MQL5: a non-trading logger captures session/time windows and records 61 fields per breakout to CSV, with a strict split between entry features and hindsight labels. The MT5 AI Assistant processes the dataset in nine phases, helping validate data

Swing Extremes and Pullbacks (Part 5): Filtering Weak Swings Using Candle Imbalance for MetaTrader 5

This article implements an MQL5 Expert Advisor that scores each impulse leg behind a swing extreme with a 0–100 Candle Imbalance Score. The score combines four bounded components—body dominance, directional consistency, leg efficiency, and Fair Value Gap coverage—to filter weak swings before any

Graph Theory: Study of Graphs Generated by Some Random Process for MetaTrader 5

This article describes an MQL5 Expert Advisor that models the market as a random graph rather than a fixed structure. Bars are encoded into discrete states; bar-to-bar moves form a decaying, Laplace-smoothed transition matrix, and a k-step random walk yields a bounded directional signal gated by an

Decoding Market Intent: Reading Structure, Liquidity, and Price Behavior for MetaTrader 5

We implement a five-stage MQL5 pipeline that quantifies market structure, liquidity interaction, and price behavior on four timeframes, then resolves them into a 0–100 Market Intent Score. Decision states (WAIT/WATCH/ACTION) are driven by explicit weights plus hard gates. The analytical core feeds a

Integrating MQL5 with Data Processing Packages (Part 10): Deploying Python AutoML Pipelines for Strategy Testing for MetaTrader 5

This article presents a reproducible MetaTrader 5 workflow: collect history, engineer nine context features, label simulated EMA crossover trades, train with FLAML, and export to ONNX with fixed opset and plain probabilities. The Expert Advisor loads the model natively, mirrors the Python feature

Formulating Dynamic Multi-Pair EA (Part 10): Asymmetric Stop-Loss Logic Based on Pair-Specific Volatility Signatures for MetaTrader 5

The EA learns each symbol's volatility profile before trading by processing 1000 bars and summarizing candle ranges, bodies and wicks, noise ratio, trend runs, pullback size, and true‑range dispersion. A classifier assigns regime and structure labels per pair. The stop‑loss optimizer maps those

Creating an EMA Crossover Forward Simulation (Culmination): Interactive Synthetic Candles for MetaTrader 5

This article finalizes the Forward Simulation Engine for MetaTrader 5 by calibrating synthetic candles to recent market volatility instead of using slope-only sizing. It samples average body, upper wick, and lower wick from closed bars, applies a sine-envelope with decay, proportional wicks, gaps

Forum

DLL and Market Place

Greetings to everyone. I have a question, since the market place does not allow programs that import DLL's... Is there any alternative within MQL5 that can maybe be implemented inside the program, to achieve the same logic without importing external DLL's? Thanks in advance

'CopyRates' Error

Greetings to you all can any one please help me i have been bugged by this error for quite some time now: ' CopyRates ' - no one of the overloads can be applied to the function call here is the code: MqlRates oneHourCandleAgo; if ( CopyRates ( _Symbol , onehourtf, 0 , 1 , oneHourCandleAgo

how can i make my EA fully and always invested

Hey fellas i need some help with my EA, for example when the "Buy" condition is true, i need it to place buy orders one after the other when the tp is hit, and the same for "Sell". currently it only opens one order only here is my code below... if (newBar){ //Buy Condition: if