Articles, Library comments - page 3

Check out the new article: Butterfly Optimization Algorithm (BOA) . The article discusses the Butterfly Optimization Algorithm, which is based on modeling foraging using the sense of smell. We will analyze the original formulas, identify and correct errors in motion equations, add a mechanism for
Check out the new article: Neural Networks in Trading: The Temporal Query Model (TQNet) . The TQNet framework opens up new possibilities for modeling and forecasting financial time series by combining modularity, flexibility, and high performance. The article explores the possibility of implementing
Check out the new article: Developing a Multi-Currency Expert Advisor (Part 30): From Trading Strategy to Launching a Multi-Currency Expert Advisor . The article outlines the complete process of creating a multi-currency Expert Advisor using the Adwizard library for MetaTrader 5: from setting up the
Check out the new article: Measuring What Matters (Part 4): Reading the Spectrum — What Eigenvalues Tell You About Risk . We turn eigenvalues from a covariance matrix into a normalized spectral‑entropy score that measures how evenly variance is spread across factors. SpectralEntropyCalculator.mq5
Check out the new article: Building Your Personal Expert Advisor (Part 6): Risk Management V — Portfolio and Correlated Risk . This part implements PortfolioRisk.mqh, a shared library that shifts risk management to the account level. It scans positions and pending orders, computes margin and
Check out the new article: Expectancy and Trade Quality Score Dashboard in MQL5 . We present an MQL5 script that converts closed trade history into comparable metrics: expectancy in currency, pips, and R-multiples, plus a sample-aware win rate via the Wilson interval. These inputs form a
Check out the new article: Defining your Edge (Part 4): Applying Isotonic Regression and PNN Price-Forecasting in an Expert Advisor . We consider the methods with which Isotonic Regression calibrates raw RSI, Stochastic and price-action signal scores into probabilities that are sorted, while a
Check out the new article: Market Simulation: Position View (XVI) . In this article, we will make the necessary changes so that the position indicator displays the financial result. This way, the trader will be able to get an idea of the financial result of an open position. In addition, I will tell
Check out the new article: From Basic to Intermediate: Queues, Lists, and Trees (VI) . In this article, we will return to the tree implementation. Now that we are familiar with the basic principles of constructors and destructors, we can finally fix the code presented in the previous article. Get
APB Channel EA — Heikin-Ashi reversal with channel confirmation and swing-structure stops : A complete, self-contained trend-reversal Expert Advisor for gold and silver. It waits for an averaged-bar colour flip to mark a possible reversal, then requires price to close back inside a volatility
New article Here Comes the New MetaTrader 5 and MQL5 is published: This is just a brief review of MetaTrader 5. I can't describe all the system's new features for such a short time period - the testing started on 2009.09.09. This is a symbolical date, and I am sure it will be a lucky number. A few
SessionReopenEA : Gold has a daily maintenance break on the CME. The first hour after it rises more than chance explains, in every calendar year of an 11-year sample - while every other hour of the day measures flat. One trade per session, a volatility-scaled server-side stop, no averaging or grid
Market Structure Entry Model : Market Structure Shift (CHoCH) Bullish Setup (CHoCH ): Price breaks above the previous confirmed Lower High (LH), signaling a trend reversal from bearish to bullish. Bearish Setup (CHoCH ): Price breaks below the previous confirmed Higher Low (HL), signaling a trend
Check out the new article: Enhanced Colliding Bodies Optimization (ECBO) . The article discusses the Colliding Bodies Optimization (CBO) algorithm, which is based on the physics of one-dimensional collisions between bodies. The basic version of the algorithm does not include any configurable
Check out the new article: Market Simulation: Position View (XV) . In this article, I will try to explain as simply as possible how messaging between applications can be used. The goal is to enable you to create something workable in the simplest and most efficient way possible whenever you can. I
Check out the new article: From Basic to Intermediate: Classes (III) . In this article, we will explore the best ways to manage code when working with object-oriented programming. Although we are just beginning to learn about object-oriented programming, what we will cover here will help you
Check out the new article: Honest Backtesting of Swing Strategies on Index CFDs: Financing Costs, Swap Modes, and What the Strategy Tester Cannot Model . Financing drives multi‑day index‑CFD results: in one full‑history test, swap consumed 44% of gross profit and all profit on one symbol. We convert
Check out the new article: How to Create and Adapt an RL Agent with an LLM and Quantum Encoding for Algorithmic Trading in MQL5 . The article proposes a hybrid approach to algorithmic trading based on quantum encoding of market states, Double DQN with a prioritized experience replay buffer, and an
Check out the new article: Online Machine Learning for Trade Signal Filtering in MQL5 (Part 1) . This article implements an online logistic‑regression trade filter in native MQL5 and integrates it into an EMA‑crossover EA with a closed‑trade feedback loop. It details the shared class, features, SGD
TransactionCostCollector — Broker Cost Profiling Script : Triple-barrier labeling pipelines frequently use an arbitrary constant (0.5–1.0%) or a legacy spread assumption as the min_ret threshold. A threshold set below the actual round-trip transaction cost causes the pipeline to label cost-driven
Supertrend MTF Indicator : Free multi-timeframe Supertrend indicator for MetaTrader 4 with clear trend lines and Buy/Sell signal arrows. Author: Dragan Joksimovic
Check out the new article: Market Simulation: Position View (VI) . In this article, we will implement a number of improvements to ensure that the position indicator accurately reflects the actual state on the trading server in terms of open positions and their current state. I should point out that
Check out the new article: The MQL5 Standard Library Explorer (Part 15): Building a Market-Regime Classifier with dataanalysis.mqh . This part focuses on practical data analysis in MQL5 with dataanalysis.mqh. We prepare a labeled dataset from bars, apply normalization, explore redundancy with PCA
Check out the new article: Building a Prop-Firm Compliance Monitor in MQL5 (Part 1): Account Rules and Persistent Settings . Establishes the persistence foundation for a prop-firm compliance EA in MetaTrader 5. It introduces rule inputs and status enums, separates live account state from stored
Check out the new article: Neural Networks in Trading: Decomposition Instead of Scaling (Conclusion) . We invite you to learn about an algorithm for decomposing a time series into meaningful layers and using them to build a parsimonious model. We systematically present the architecture, the
Check out the new article: Adaptive Position Sizing in MQL5: A Prototype Risk Engine with Generalized Kelly and Bootstrap Calibration . This article presents a modular position sizing engine for MetaTrader 5 that operates on normalized R-multiples. A layered pipeline combines enriched trade
Check out the new article: How to connect AI agents to MetaTrader 5 via MCP . This article shows how to connect AI agents directly to MetaTrader 5 by building a complete MCP (Model Context Protocol) server in Python. It details the architecture, MetaTrader 5 client wrapper, market data and order
Check out the new article: Network Momentum for MetaTrader5: Trading the Lead-Lag Graph Between Markets . This article builds a trend-following Expert Advisor that trades momentum spillover across markets, implemented fully in MQL5 without external solvers. It detects leaders with Derivative Dynamic
New article Tips for an Effective Product Presentation on the Market has been published: Selling programs to traders effectively does not only require writing an efficient and useful product and then publishing it on the Market. It is vital to provide a comprehensive, detailed description and good
Risk Guard — risk-based lot size, daily loss lock, max positions, oversized-trade trim, forced stop-loss : Enforces your own risk rules on every position, whether opened by hand or by another EA: shows the lot size that matches your risk, locks the account for the day after a set loss, caps open