Articles

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

Graph Theory: Network Flow of Commodities (Ford-Fulkerson Algorithm), Used as a Liquidity-Capacity Engine for MetaTrader 5

The article presents an MQL5 Expert Advisor that adapts the Ford–Fulkerson max-flow method into a liquidity-capacity filter. Market structures—Swing Highs/Lows, Fair Value Gaps, Order Blocks, and Liquidity Pools—form a directed graph with edge capacities from volume, price reaction, distance, and

Swing Extremes and Pullbacks (Part 4): Dynamic Pullback Depth Using Volatility Models for MetaTrader 5

This article replaces binary swing validation with a volatility‑normalized pullback model. Retracement depth is measured as a ratio of the prior impulse and calibrated to a rolling ATR regime, while entries require a minimum quality score and confirmation by structure or liquidity signals. The

Formulating Dynamic Multi-Pair EA (Part 9): Market Microstructure Execution Noise Filtering for MetaTrader 5

This article presents a multi-symbol execution filter that scores real-time market quality before any trade is allowed. It measures spread behavior, tick velocity, quote gaps, micro-volatility, and a slippage estimate, then classifies the state to block degraded conditions. Once noise settles, a

Integrating AI into 3 Smart Money Concepts (SMC): OB, BOS, and FVG for MetaTrader 5

This guide integrates a trained XGBoost model (ONNX) into an SMC EA to evaluate trade setups before execution. The Python pipeline labels historical XAUUSD events and produces a 12-feature representation aligned with the EA. The result is a reproducible method to train, export, and embed the model

Integrating MQL5 with Data Processing Packages (Part 9): Entropy-Based Adaptive Volatility for MetaTrader 5

This work presents an end-to-end pipeline: collect MetaTrader 5 data, engineer entropy/volatility/trend features, train a PyTorch classifier, and expose predictions through a Flask API. An MQL5 EA posts rolling prices each tick, receives probability and regime, and applies adaptive position sizing

Creating an EMA Crossover Forward Simulation Indicator in MQL5 for MetaTrader 5

A custom forward simulation engine detects fast/slow EMA crossovers and immediately projects synthetic candles ahead of the signal bar. It generates bodies and wicks using controlled logic, draws them with chart objects, and refreshes on every new signal or anchor change. You get a clear

Graph Theory: Heuristic Search Algorithm (A-Star) Applied in Trading for MetaTrader 5

The article applies the A* heuristic to market structure by modeling validated swing highs and lows as graph nodes and weighting edges with ATR‑normalized distance, spread, and noise penalties. The engine searches the most efficient route to infer trade direction and targets, then filters signals by

Automating Market Entropy Indicator: Trading System Based on Information Theory for MetaTrader 5

This article presents an EA that automates the previously introduced Market Entropy methodology. It computes fast and slow entropy, momentum, and compression states, validates signals, and executes orders with SL/TP and optional position reversal. The result is a practical, configurable tool that

Formulating Dynamic Multi-Pair EA (Part 8): Time-of-Day Capital Rotation Approach for MetaTrader 5

This article presents a Time-of-Day capital rotation engine for MQL5 that allocates risk by trading session instead of using uniform exposure. We detail session budgets within a daily risk cap, dynamic lot sizing from remaining session risk, and automatic daily resets. Execution uses

Forum

'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