History of MQL5.community development

The most popular trading robots and technical indicators, news signals, regular incoming ready-made MQL5 programs in CodeBase and the most discussed Forum topics.

There are more than 62,230 products available in Market

New publications in CodeBase

  • Portfolio Allocation Planner — budget-to-lots dashboard and CSV Before configuring a basket, see which target weights fit your broker's minimum lots. Portfolio Allocation Planner turns an explicit hypothetical notional budget and percentages into a chart table: minimum-lot notional, lots rounded down, calculated allocation, target shortfall and row status. Recalculate on demand, inspect row tooltips, paginate longer lists, and optionally export the displayed snapshot to CSV. No trades are sent and no account balance, equity or positions are read.
  • Broker Basket Preflight — read-only contract and minimum-volume diagnostics Read-only MT5 script for exact Market Watch symbols: contract and volume rules, quote age and spread, isolated BUY/SELL margin, one-tick price moves and spread-only results in account currency. MIT source; Experts journal output.
  • AgentGuard — Independent Risk Guard for AI Agents in MetaTrader 5 Independent Risk Guard for AI Agents in MetaTrader 5.
  • Manual Trade Pad for Strategy Tester A lightweight manual trading panel for MetaTrader 5 with market order execution, risk-based position sizing, Break-Even, partial close and position management. Works in both live trading and the Strategy Tester.
  • Symbol Spec Export - volume step, filling mode and stops level to CSV Writes the trading specification of every symbol to a CSV file: volume step, filling modes, stops level, tick value and more.
  • DailyLossGuard — Hard Daily Loss Protection DailyLossGuard — Hard Daily Loss Protection (Prop-Firm Challenge Essential)
  • Broker Clock Auditor Reads the server clock from the symbol's own H1 history. The forex and CME week closes at 17:00 New York, so the server time of every weekly close gives the server's UTC offset for that week. Over 60 weeks it flags irregular closes, dates every clock change and tests it against the US and European daylight saving calendars, cross-checks TimeTradeServer minus TimeGMT, and lists the server time of the London, New York, Tokyo and Sydney opens for the coming weeks. Writes every close to CSV. Read only: no trade function, no DLL, no network.
  • Prop Daily Loss Meter Shows how much of the daily loss limit of a prop firm account is already used, and how much is left. Read-only indicator.
  • Server Clock Check Measures how far your PC clock is from the trade server's clock, from the server time stamped on live ticks, and tells you how to fix it.
There are more than 155,340 topics available on forum
There are more than 12,520 codes published in Codebase

8 new topics on forum:

and 5 more...

Bestsellers in the Market:

26 new signals now available for subscription:

XAUUSD SCALPING
148% 54 trades
Growth:148.13%
Equity:101.54USD
Balance:101.54USD
Bcoin
99% 100 trades
Growth:99.11%
Equity:331.36USD
Balance:331.36USD
Candle Day AUDCAD
79% 805 trades
Growth:78.72%
Equity:995.30USD
Balance:1,000.00USD
and 23 more...
There are more than 3,490 articles published on site

Published article "Neural Networks in Trading: From Transformers to Spiking Neurons (SpikingBrain)".

Neural Networks in Trading: From Transformers to Spiking Neurons (SpikingBrain)

The SpikingBrain framework demonstrates a unique approach to data processing: neurons respond only to significant events, effectively filtering out noise. Its event-driven architecture reduces computational costs while preserving key information about price movements. Adaptive thresholds and the ability to use pre-trained modules ensure the model's flexibility and scalability.

The most popular forum topics:

Published article "Time Series Shapelets: Learning a Price Shape, and Testing Whether It Means Anything".

Time Series Shapelets: Learning a Price Shape, and Testing Whether It Means Anything

We implement a Time Series Shapelet library for MQL5 that finds the subsequence of price history whose z-normalized shape best separates two labels and derives the decision threshold from information gain. Because candidate searches on prices always return a winner, the fit includes a purged hold-out and a calibrated block permutation null. You get a reusable facade and rules you can plot and evaluate against an explicit noise floor.

Published article "Inside MetaEditor's AI Assistant: Writing, Repairing and Testing MQL5 with an Agent".

Inside MetaEditor's AI Assistant: Writing, Repairing and Testing MQL5 with an Agent

We use the MetaTrader 5 AI Assistant to execute the full workflow end to end: create an EA from a natural‑language prompt, compile it, break and watch it self‑correct from compiler output, backtest it, and compare a controlled re‑run. The article details the underlying MCP extensions, configuration and safety limits, and how to connect external AI clients. Readers get a repeatable process for building and testing EAs inside the platform.

Published article "Monthly Profit and Loss Calendar Heatmap Renderer in MQL5".

Monthly Profit and Loss Calendar Heatmap Renderer in MQL5

The article presents an MQL5 script that reads closed deals, groups them by date, and renders a calendar grid for daily P&L and trade count. It explains the data model, normalization to midnight, robust week/weekday mapping, diverging and single-hue color scales, and CCanvas-based drawing, plus a verification script and weekday summary. This helps you quickly locate clusters and quiet periods and cross-check findings with logged totals.

Published article "Swarm Optimizer with Hierarchical Sub-Flocks — Flock by Leader".

Swarm Optimizer with Hierarchical Sub-Flocks — Flock by Leader

We are developing and implementing the Flock by Leader algorithm in MQL5: sub-flocks are formed based on the ARF metric, and the leader is determined by the highest personal best rather than by the centroid's position. We present the update formulas for the swarm roles and the separation mechanism. The C_AO_FBL class is compatible with the test bench and has been tested on the Hilly, Forest, and Megacity functions with dimensionalities from 10 to 1000 coordinates, which simplifies reproduction and comparison.

Published article "Developing Smart Chart Objects in MQL5 (Part 2): Automating Trendline Discovery and Lifecycle Management".

Developing Smart Chart Objects in MQL5 (Part 2): Automating Trendline Discovery and Lifecycle Management

Learn how Smart Trendline Manager separates creation from lifecycle control while handling both manual and auto-generated trendlines. It demonstrates discovery, registration, proximity and touch handling, bounce/break confirmation, post-break resurrection, expiration, and state-driven visualization. This gives you a consistent, configurable way to manage multiple lines through one orchestrated update process.

Published article "Meta-Labeling the Classics (Part 4): Filtering and Sizing MACD Trades".

Meta-Labeling the Classics (Part 4): Filtering and Sizing MACD Trades

MACD signal-line crossovers often reflect range noise rather than true momentum shifts, producing whipsaws. We apply a two-layer meta-labeling pipeline with an Optuna-optimized regime gate to filter entries on EURUSD H1, turning a gross-losing rule into a positive but not statistically significant track. A secondary Random Forest adds no lift due to too few gated samples, clarifying when filtering helps and when the ML layer is data-starved.

Published article "Consecutive Loss Streak Analyzer and Risk-of-Ruin Calculator in MQL5".

Consecutive Loss Streak Analyzer and Risk-of-Ruin Calculator in MQL5

This article presents an MQL5 script that extracts closed trade history, computes empirical win rate and payoff, and evaluates consecutive-loss probabilities using the geometric tail, plus risk of ruin from edge and position size. It plots a CCanvas ruin curve with a live marker at the chosen risk and prints a probability summary, including the account's worst historical streak in theoretical context.

The most downloaded free products:

There are more than 62,080 products available in Market

More than 1000 new charts published:

チャート XAUUSDu, H1, 2026.10.06 02:54 UTC, PT Dupoin Futures Indonesia, MetaTrader 5, Demo
XAUUSDu, H1
Chart USDJPY, H1, 2026.10.06 03:10 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
USDJPY, H1
Chart XAUUSD.x, M1, 2026.10.06 06:27 UTC, Sarmaye Gozare Bartar Ltd., MetaTrader 5, Demo
XAUUSD.x, M1

Most downloaded source codes this month

  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
  • LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.

Most read articles this month

How to purchase a trading robot from the MetaTrader Market and to install it?

How to purchase a trading robot from the MetaTrader Market and to install it?

A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.

How to Test a Trading Robot Before Buying

How to Test a Trading Robot Before Buying

Buying a trading robot on MQL5 Market has a distinct benefit over all other similar options - an automated system offered can be thoroughly tested directly in the MetaTrader 5 terminal. Before buying, an Expert Advisor can and should be carefully run in all unfavorable modes in the built-in Strategy Tester to get a complete grasp of the system.

New publications in CodeBase

  • Multi-Indicator Divergence Detector Regular and hidden divergences between price and ten oscillators calculated inside the indicator: MACD, MACD histogram, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, Chaikin Money Flow and MFI. Lines on price, a box naming every oscillator that agrees, and alerts.
  • Session Levels - Asian range, PDH/PDL, VWAP, swings and round numbers Session Levels draws the reference levels intraday traders watch most: Asian range, London and New York sessions, previous day and week high/low, daily VWAP, swing points and round numbers. Hover any level to read what it is and why it matters. Optional alerts when price breaks the Asian range or the previous day high/low.
  • CajasTF – Integrated Multi-Timeframe Side Panel for MT5 Real-time multi-timeframe side panel mini-chart with smart color matching, independent price scale, and candle countdown timer.
  • ATS Trade Management Library - break-even, trailing stop and partial closes for any EA Look after open positions in an Expert Advisor: break-even, trailing stop, two partial closes, and a stop and target for positions that have none. It never opens a trade.
  • Session Reality Auditor Checks the broker's session table against the M1 history. For every minute of the week it counts on how many of the last N days the symbol really has a bar, and sets that next to SymbolInfoSessionQuote and SymbolInfoSessionTrade: declared minutes that are usually empty (rollover holes), bars in minutes the table calls closed, trade and quote tables that disagree, and one-off outages such as an early holiday close. Prints the real sessions per weekday, writes every finding to CSV and prints its own arithmetic. Read only: no trade function, no DLL, no network.
  • Advanced Prop-firm Trade Panel based on S-R A manual trading panel with a built-in prop-firm risk guard and a hidden Support/Resistance finder for MetaTrader 5.

Bestsellers in the Market:

8 new topics on forum:

and 5 more...

20 new signals now available for subscription:

Smart Multipair Algo
74% 796 trades
Growth:74.42%
Equity:1,358.20EUR
Balance:1,380.43EUR
Gold 5 plus
54% 512 trades
Growth:54.09%
Equity:15,189.79EUR
Balance:15,189.79EUR
ExtractoDAO SA
33% 38 trades
Growth:32.92%
Equity:70,212.78BRL
Balance:95,601.12BRL
and 17 more...

Published article "The Deflated Sharpe Ratio in MQL5: Telling a Real Edge from a Lucky Backtest".

The Deflated Sharpe Ratio in MQL5: Telling a Real Edge from a Lucky Backtest

A Sharpe ratio read off the best of many optimization runs is not the number it looks like. This article ships a reusable native CDeflatedSharpe class that turns a raw Sharpe into an honest confidence statement. The Probabilistic Sharpe Ratio corrects it for sample length and for skew and kurtosis; the Deflated Sharpe Ratio adds the correction almost nobody applies, for the number of variants you tried before keeping the best. Everything is from scratch, the sample moments, the normal CDF and its inverse included, so there is no Python, no DLL and no library. On a real sweep of 56 moving-average variants on XAUUSD the winner looked significant at 98.5 percent by PSR, then fell to 90.6 percent once the 56 trials were admitted, below the usual bar. That gap is the selection bias, made measurable.

Published article "Swing Extremes and Pullbacks (Part 5): Filtering Weak Swings Using Candle Imbalance".

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

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 pullback setup is armed. You will see enforced swing alternation, a state machine for first-clean-retest-only entries, and a three-mode trailing stop, enabling consistent setup selection and exit management.

Published article "Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Conclusion)".

Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Conclusion)

The article provides a detailed examination of the integration of the ST-Expert framework's approaches into the Extralonger architecture, which enables the simultaneous analysis of temporal and spatial representations of data. The results of testing on real historical data are presented, demonstrating the model's effectiveness and its robustness to market anomalies. The article describes the framework's modular structure, which ensures reproducibility, flexibility for research, and the ability to optimize components in stages.

Published article "How MQL5 Lite MCP AI Assistant Changed My Debugging Approach on Generated MQL5 Codes".

How MQL5 Lite MCP AI Assistant Changed My Debugging Approach on Generated MQL5 Codes

This article presents a practical debugging workflow with MetaEditor's integrated AI Assistant and a comparison to the previous external approach. We fix a controlled set of syntax and API errors in a D1 PriceMarker EA, inspect modifications, and recompile. The result is validated in the Strategy Tester, with clear boundaries between compilation success and required runtime checks.

Published article "Developing a Quantitative Session Analysis Tool (Part 1): Building a Data-Driven View of Market Sessions".

Developing a Quantitative Session Analysis Tool (Part 1): Building a Data-Driven View of Market Sessions

The article presents a session analysis workflow in MQL5 that standardizes sessions as structured data with timing, OHLC, range, net move, and the sequence of extremes. It measures how range builds at 25%, 50%, 75%, and 100% of session duration. The chart shows session markers, a compact comparison panel, and an interactive inspector to review individual occurrences.

Published article "Creating and Testing a Council of 15 Models in MetaTrader 5".

Creating and Testing a Council of 15 Models in MetaTrader 5

The article describes the transition from four-voice debates to the Council of Fifteen: ten analysts, four independent risk managers, and a Chair, with strict voting rules. It examines the roles of the participants, the three-phase architecture, and the parallel execution of a full cycle in 10–15 seconds. It shows the operational log, the risk-gate rules, and backward compatibility so you can quickly connect the system to an Expert Advisor.

More than 1100 new charts published:

チャート GOLDm#, M15, 2026.10.05 12:34 UTC, XM Global Limited, MetaTrader 5, Real
GOLDm#, M15
Grafik XAUUSD, D1, 2026.10.05 04:30 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
XAUUSD, D1
チャート EURUSD, M5, 2026.10.05 06:57 UTC, MetaQuotes Ltd., MetaTrader 5, Demo
EURUSD, M5

The most downloaded free products:

There are more than 61,930 products available in Market

Bestsellers in the Market:

13 new signals now available for subscription:

My
1,061% 2486 trades
Growth:1,061.12%
Equity:1,545.47EUR
Balance:1,693.67EUR
Zlodej zlata 1
110% 575 trades
Growth:110.38%
Equity:1,000.00USD
Balance:1,000.00USD
TWC ForexKing1
64% 327 trades
Growth:63.66%
Equity:6,902.21USD
Balance:7,395.57USD
and 10 more...

New publications in CodeBase

  • Newtonian Mechanics A MetaTrader 5 utility that treats the bid and ask quote streams as two independent physical trajectories and fits a local quadratic to each, producing position, velocity, and acceleration with honest error bars and an out-of-sample forecast scoreboard.
  • ICT Structure Visualizer – liquidity sweep, MSS and FVG with an honest statistics panel Draws ICT structure on the chart (liquidity pools, sweeps, market structure shift, fair value gaps) from closed bars only, adds a trade plan for every confirmed setup and keeps an honest statistics panel of what those setups did on your symbol. Analysis only – it does not trade.

8 new topics on forum:

and 5 more...
There are more than 3,480 articles published on site

Published article "Overcoming Accessibility Problems in MQL5 Trading Tools (Part VII): MetaTrader 5 Model Context Protocol (MCP) the Grand Solution".

Overcoming Accessibility Problems in MQL5 Trading Tools (Part VII): MetaTrader 5 Model Context Protocol (MCP) the Grand Solution

Many traders know what they want to analyze or automate but cannot navigate MetaTrader 5, use MetaEditor, or translate an idea into working MQL5 code. This article shows how the AI Assistant and MCP turn one natural-language prompt into a complete workflow: strategy development, editing, debugging, chart interaction, testing, and permission-controlled trading. We apply the process by building MCP_Accessibility_Assistant.mq5, leaving you with a working, accessible EA and a reusable prompt-driven development method.

Published article "Markov Chains in Trading and Price Forecasting".

Markov Chains in Trading and Price Forecasting

In this article, we will examine how to build and apply Markov chains in market conditions: from selecting states and counting transitions to generating forecasts of trajectories and levels. We will also see how Markov chains can be applied to qualitative and quantitative data, ways to account for rare events, and the impact of the forecast horizon. Examples are provided using prices and indicators, as well as an option for evaluating a sequence of trades, with ready-to-use implementations in MQL5.

Published article "Graph Theory: Study of Graphs Generated by Some Random Process".

Graph Theory: Study of Graphs Generated by Some Random Process

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 Erdos–Renyi null-model test. A separate trade-outcome graph over R-milestones learns survival probabilities to manage exits, turning position management into evidence-based rules.

Published article "Win Rate and Edge Ratio Heatmap by Hour and Symbol in MQL5".

Win Rate and Edge Ratio Heatmap by Hour and Symbol in MQL5

This MQL5 dashboard aggregates closed deals by symbol and UTC hour, calculates win rate and average reward‑to‑risk, and displays the results as two color‑coded heatmaps. A companion table in the Experts tab highlights the strongest and weakest symbol/hour cells, with an option to require a minimum trade count to reduce noise.

Published article "Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Attention Modules)".

Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Attention Modules)

In this article, we continue implementing the ST-Expert framework approaches, focusing on the practical aspects of applying them using MQL5. Earlier, we examined the theoretical foundations and key components of the model; now we move on to working directly with graph attention algorithms and local and global attention distribution. The main goal of this work is to demonstrate how ST-Expert's conceptual ideas are transformed into workable solutions for analyzing and forecasting financial time series.

Published article "Building a Divergence System (Part IV): Creating a Reusable Divergence Engine for MQL5".

Building a Divergence System (Part IV): Creating a Reusable Divergence Engine for MQL5

The article extracts the series' divergence logic into DivergenceEngine.mqh, a reusable header for MQL5 indicators and Expert Advisors. It details the struct-based design, oscillator options (MPO4 or RSI), pivot and state handling, and the minimal access API. A Parabolic SAR EA demonstrates integration by adapting the acceleration factor from the detected divergence, providing a clear pattern you can reuse without duplicating code.

Published article "State Persistence in MQL5 (Part 1): A Crash-Safe State Store That Survives a Restart".

State Persistence in MQL5 (Part 1): A Crash-Safe State Store That Survives a Restart

The series develops state persistence for MQL5 Expert Advisors. Part 1 delivers a crash-safe key-value store: a CStateStore class that saves through a temporary file and a rename, carries a versioned header with a checksum, and stores integers, doubles, strings, booleans, and double arrays, plus a demo advisor that resumes a counter and a rolling window after a restart. Readers get a compact include file and a pattern that protects the live state file if the process dies mid-save.

The most downloaded free products:

More than 900 new charts published:

Chart XAUUSD, M15, 2026.10.04 23:29 UTC, Deriv.com Limited, MetaTrader 5, Demo
XAUUSD, M15
Gráfico USDCHF, D1, 2026.10.03 12:52 UTC, MetaQuotes Software Corp., MetaTrader 4, Demo
USDCHF, D1
Graphique MAX GainX 2000, M1, 2026.10.03 00:08 UTC, Weltrade Ltd., MetaTrader 5, Demo
MAX GainX 2000, M1

5 new topics on forum:

and 2 more...
1...121314151617181920212223242526...709