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.

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...
There are more than 61,810 products available in Market

Bestsellers in the Market:

23 new signals now available for subscription:

Gold EA Stop Loss No Martingale
161% 804 trades
Growth:161.27%
Equity:1,280.81USD
Balance:1,280.81USD
Sistem plus plus
69% 85 trades
Growth:68.54%
Equity:789.77USD
Balance:861.13USD
Titan Gravity Nina
47% 155 trades
Growth:46.90%
Equity:734.68EUR
Balance:734.51EUR
and 20 more...

Most downloaded source codes this week

  • ASQ Command Desk ASQ CommandDesk is a professional order management panel for manual traders on MetaTrader 5. You make the trading decisions — CommandDesk handles execution, risk control, and exit management automatically.
  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • KSQ CommandCenter Remote Google Sheets Trade Manager KSQ Command Centre is a production-ready, two-way bridge between MetaTrader 5 and Google Sheets. It was originally designed to help fund managers and quantitative traders remotely monitor and manage large, funded accounts (e.g., Darwinex Zero, Prop Firms, PAM, MAM) directly from a mobile browser, without needing to log in to a VPS. This Expert Advisor not only exports data—it actively listens for commands typed into your Google Sheet and executes them in MT5 in near real-time.

Most read articles this week

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.

How to Order a Trading Robot in MQL5 and MQL4

How to Order a Trading Robot in MQL5 and MQL4

"Freelance" is the largest freelance service for ordering MQL4/MQL5 trading robots and technical indicators. Hundreds of professional developers are ready to develop a custom trading application for the MetaTrader 4/5 terminal.

The most popular forum topics:

New publications in CodeBase

  • ATS Prop Rules Monitor - prop firm challenge scoreboard with the room left on every rule One panel for the rules of a prop firm challenge: daily loss, maximum loss (static or trailing), profit target, minimum trading days and the best-day (consistency) rule. For each one it shows how much is used and how much room is left, in money. "One more trade" tells you the largest lot size that still keeps a stop-out inside the room left today and in the max-loss room. Read-only: it never opens, changes or closes a trade. The presets hold typical values; firms change their rules, so check yours and use the Custom preset. Built on the ATS Risk Library (ATS_RiskLib.mqh, included).
  • ATS Risk Library - lot size from the stop, daily loss, drawdown and exposure guards A small include file for Expert Advisors and trade managers. It turns your risk rules into yes/no answers: how many lots does this stop allow, is the daily loss limit reached, is the maximum drawdown (static or trailing) reached, how much is at risk across all open positions, and are spread and session acceptable. The lot is never rounded up: if the broker minimum lot would risk more than allowed, the trade is skipped and the reason is returned. Limits survive a terminal restart. The library only measures: it sends no order. Includes a demo account guard (no trading by default) and a self-test with 78 checks.
  • Trend BOSS The Trend BOSS Indicator identifies regimes such as trending, ranging or volatile using a Bag-of-SFA-Symbols (BOSS) classifier. Gate your strategies behind specific regimes or use the indicator to identify various market conditions.
  • Market Activity from Quote Waits Measures market activity from the waits between quotes. An ACD model with the daily rhythm removed gives one ratio per tick: 1 is normal, 2 twice as busy.
  • Extrapolator Extrapolator fits a sum of sinusoidal harmonics to the recent price history and extends the fitted curve to the right of the last bar as a forecast.The forecast is a mathematical extrapolation of past cyclical behaviour, not a guarantee of future price movement. The last part of the line is redrawn while the current model bar is forming, and the fitted curve changes with each refit.
  • 87.8 Percent from 2021 to YTD at 8.5 Percent MaxDD. The Nikkei EA That Only Buys When Volume Is Quiet A free, fully open JPN225 (Nikkei 225) EA for M15. Buys when price leans up, momentum isn't stretched and volume is quiet. Backtest 2022 to 2026: profit factor 1.68, +18.5% a year, passed 15 stress tests. Flat by 17:00.
  • Tick Integrity Auditor Audits the tick history that 'Every tick based on real ticks' backtests replay. Five checks per symbol over the last N days: impossible and crossed quotes, timestamps that run backwards or repeat, one-tick price reversals sized in multiples of the symbol's own median spread, silences inside the broker's declared quote sessions, and minutes where the ticks and the M1 bars disagree. Every finding goes to CSV with its millisecond timestamp, and the tool prints its own arithmetic so the report can be recounted. Read only: no trade function, no DLL, no network.
  • Memory Sequence A specified moment in time can be analyzed through multiple synced timeframes from 1 host chart for a symbol.

The most downloaded free products:

1...121314151617181920212223242526...709