Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
  Python in algorithmic trading  (236   1 2 3 4 5 ... 23 24)
MQL5 is a programming language that is specifically designed for creating high-performance trading applications in financial markets. It offers faster speed and superior performance compared to other specialized programming languages used in algorithmic trading, and its syntax is similar to that of
I thought, why not make a good reference thread . In it I would like to cover the most important questions about the work of markets, liquidity providers, MT5 platform, which are asked not only by beginners. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
Description: When a test is started in the Strategy Tester (also from the command line with /config), the terminal logs "automatic testing started" and 0.15–0.35 s later "connection to TickmillUK-Live lost", then re-authorizes within ~0.5 s. If a history/tick download is in progress at that moment
Many prop-style rules measure the daily loss limit from midnight on the broker's server clock and include floating P/L (equity), not only closed trades. Below is the approach we use in an EA to get the day's starting balance and the running result for the day, closed plus open, without storing
Hello everyone, While building a risk / lot size calculator I ran into a problem that I think affects a lot of EAs. The classic formula based on SYMBOL_TRADE_TICK_VALUE works fine on EURUSD, but on some brokers it gives wrong lot sizes on XAUUSD, index CFDs and synthetic indices. The causes I found
Hello, I am trying to understand a Market automatic-validation failure for an MT5 Expert Advisor that is designed for gold (XAUUSD) only. Service Desk told me they do not check code and asked me to ask on the forum, so I am asking here for technical help with the diagnosis. Validation report
Running 2 EAs on MT5 via VPS. Recently had one go quiet for about 3 days — no crash, no errors in Experts or Journal, smiley face still there, terminal connected. It just stopped taking trades. I only found out because I manually check the accounts every few days. Could easily have been longer
The strategy that I am currently developing performs very well in the strategy tester, but when I do forward testing it fails. How can I shorteh the gap between strategy tester data and forward testing
Hello MetaQuotes team, I am trying to establish the provenance of an EX5 file loaded by a local MetaTrader 5 Strategy Tester agent. In one run, the agent journal reported “expert file added ... 239101 bytes loaded,” while the frozen local EX5 file measured 239012 bytes. I do not know whether these
Hello This EA has been developed, is highly flexible and does have profitable settings. I'm (bravely/stupidly) opening it out for people to test and share any profitable strategies they might find. It's not coded for MQL Marketplace yet, so it can't be sold on or used to develop a signal service
I am trying to solve this problem with my code. can someone help me look at this and tell me what is the problem or how to fix the error? //+----------------------------------------------+ //| DASHBOARD TITLE HEADINGS | //+----------------------------------------------+
Is there an officially supported way to preserve an MT5 Strategy Tester session’s simulated order and deal history and an open position with its Stop Loss, then change an EA input and reinitialize the same compiled EX5? I’m testing an EA that blocks new entries after a simulated fill exceeds its
Hello traders, What are the key considerations when developing an EA that trades multiple currency pairs simultaneously in MT5? Any guidance is welcome
Hello, I am preparing Double Gold 1.07, an MT5 Expert Advisor designed for XAU/USD, for publication. The MQL5 Market automatic validation reported “there are no trading operations” on XAUUSD D1 (hedging). The report did not show the test dates, starting deposit, leverage, or the Expert Advisor
Title: Is it possible to retrieve historical swap rates for a symbol in MetaTrader 5? Hello MetaQuotes Team and MQL5 Community, I am conducting a historical trading strategy research project using MetaTrader 5 and need to retrieve historical swap rates for a specific broker symbol. My trading
I am testing an 11-symbol MT5 EA that checks positions once per second. I would like to reproduce a Market timeout locally. Three consecutive validation reports stopped at different points. All the tests listed below used netting accounts. v1.47 (25 Nov) completed EURUSD H1 and XAUUSD D1 with “there
Hi everyone, there were a few threads here lately about backtest vs live. Most ask why the two differ. I'd like to ask something a bit different: how do you notice it early enough? What I do with my EAs is pretty simple. I run the backtest over the same weeks as the live trades, on my broker's
Hello everyone, I am researching tick-based scalping strategies on XAUUSD using MQL5, with holding periods ranging from a few seconds to approximately one minute. During previous experiments, I found that micro-range and tick-momentum signals sometimes showed positive price movements before
  Canvas is cool!  (1068   1 2 3 4 5 ... 106 107)
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
Every Expert Advisor I test now carries an input it does not need: the expected cost of a round trip, in points. At zero the strategy trades as if execution were free. Set it to a spread measured from your own quotes and the same code pays for its fills, and the gap between the two runs is the only
Hello everyone, I develop multi-strategy gold (XAUUSD) EAs for MT5, and I am working on how best to protect open profit when the market reverses. Some of my trend trades had no fixed take profit and gave back a large part of their open profit in a sharp reversal, so I compared four exit methods on
Hello everyone, A user reviewing one of my CodeBase EAs found a bug that I think many panel EAs have: when you switch the chart timeframe, the EA is unloaded and loaded again (OnDeinit with REASON_CHARTCHANGE, then OnInit), and everything the user changed on the panel goes back to the input
I bought an Ea but when I click install, nothing happens, I see just the logo of the Ea reloading but nothing more, what could be the problem? In the messages I see 2026.11.28 04:39:52.376 MQL5 Market 'xxxxxxxx': start the activation of the purchased product 'Lizard' 2026.11.28 04:39:52.471 MQL5
How do you record MT5 Economic Calendar releases for a Strategy Tester replay that uses only the values available at the time? I’m looking at CalendarValueLast() . What’s a reliable way to timestamp the first observed actual and forecast values and flag gaps after a terminal disconnect
My MT5 EA, "SP500 Close Reversal" (MQL5 Market product ID 211103), trades an S&P 500 cash index CFD. It can run on a chart for another symbol and select the index from the server. It requires a non-expiring, USD-profit, Bid-based CFD with permission to place market orders. The Market report for
Hi, I am totally new in MT5 Python API and I hope, my question is quite trivial - I couldn't find anything: How to install a MT5 listener so the Python script gets notified, once a trade was closed by a S/L or limit order? Is there a sample somewhere? Which functions to use? Thx
I needed a reliable way to tell whether a position left the account because of Stop Loss, Take Profit, Stop Out, or an EA/manual close, including partial closes. Polling `PositionsTotal()` only tells you that something disappeared. The deal in history has the reason. The hook is
The approach that has been reliable for me is the one Fernando Carreiro described years ago: ask OrderCalcProfit() for a known volume, then scale to the money you are willing to lose. I use the symbol's maximum volume as that known size, because 1.0 lot is not always a valid volume. OrderCalcProfit
Hello everybody, I've been experiencing this for a while now, and I wonder if anybody else is having this issue. When I run an All Market Watch Symbols optimization, it performs all passes but one, then it just hangs, no errors, no logs no nothing. I've experienced this both on broker symbols and