Codes

Risk calculator for MT 5 for MetaTrader 5

The indicator calculates your risk as a percentage and gives you the lot size that is acceptable for your risk. You only need to specify the risk in per cent and the stop size in pips

Probability Theory Expert Advisor for Forex for MetaTrader 5

Probability Theory Advisor

Price / Volume indicator for MetaTrader 5

One of the simpler chips for machine learning

Advanced compound interest calculator for the trader for MetaTrader 5

A compound interest calculator for the trader. Calculates, based on your parameters, your risk of ruin, and the optimal risk per trade. Gives a forecast of your capital size in a year, month, and at the end of the term

Articles

A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part III): A Living Feature Graph for MetaTrader 5

The third article in this series introduces a trainable feature graph in the Cellular10K architecture: the weights of the feature → feature connections are strengthened online after correct predictions and weakened after errors. The article covers soft initialization, the message-passing step, a

A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part II): A New Level of Online Adaptation for MetaTrader 5

In the second part, the cellular automaton is transferred from a grid to a graph. The features become vertices in a graph with local and long-range small-world connections, and the cells become agents that interact not only with their geometric neighbors but also with their semantic neighbors. The

Creating Three-Dimensional Bars in MQL5 for MetaTrader 5

Migrating 3D bars from Python to native MQL5: instead of Plotly and a bridge to the terminal — a scene using CCanvas3D and DirectX 11 directly on the chart. Price, time, and tick volume are plotted along three axes; the geometry is assembled manually from vertices and triangles; and a

TradeMux as a Quant Backbone: Connecting Institutional Python Pipelines to Different Terminals and Brokers for MetaTrader 5

The article describes TradeMux as a bridge between a Python pipeline and the MetaTrader 5 terminal for the seamless transfer of trading decisions without duplicating logic. The article examines a four-layer production architecture and a complete Python execution service: connection setup, reading

How to Build a 29-Pair Portfolio with an L1 Filter and VaR-based Allocation of Lots for MetaTrader 5

The article explores the practical application of the L1 Trend Filter for noise reduction and the construction of structural features suitable for live trading. The full workflow is presented: H1 data for 29 instruments from MetaTrader 5, causal filtering, CatBoost with a horizon of three L1 bars

How to Replace a WebSocket EA with TradeMux REST in MetaTrader 5 for MetaTrader 5

The article continues the series on AI Hedge Fund and addresses three limitations of v4: analysts' reputation scores are now stored persistently in SQLite, the EA has been removed from the critical execution path, and signals from the council of fifteen are distributed to multiple brokers via the

A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part I): Continuous Adaptation of the Trading Model on Each Bar for MetaTrader 5

The article examines the architecture of an Expert Advisor based on a cellular automaton with 10,000 adaptive parameters and an independent binary predictor with a 10-bar prediction horizon. The article demonstrates a three-level online learning process, the evolution of strategies, and validation

From Signal to Trade via a Chain of Agents: LangChain Architecture on Top of MQL5 for MetaTrader 5

The article describes an architecture in which the MQL5 Expert Advisor (EA) handles only data collection and execution, while the logic is moved to a Python server with three LangChain agents: a signal agent, a news agent, and a risk manager. Agents process the WebSocket request sequentially; if any

How to Implement Metaprompting for Trading Signals in an MQL5 Expert Advisor for MetaTrader 5

Metaprompting is an approach in which the LLM itself optimizes trading instructions based on actual P&L and signal quality metrics. The article demonstrates a practical implementation in Python and MQL5: a prompt version registry, an execution agent, an evaluator for directional accuracy and profit

Using Renko-bar Regression with Error Correction for MetaTrader 5

The article presents a regression-based approach to forecasting Renko bars using CatBoost: the model estimates the logarithmic return of the next bar and the uncertainty of the forecast. We will examine a cascade of residual models with OOF validation using TimeSeriesSplit, shrinkage, and overall