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  (234   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. Приглашаю всех желающих, у кого есть какая-либо интересная и редкая инфа излагать её в
Hello, I have a question about newly introduced Calendar in MQL5. Is it only used for closing open orders before the economic news ? Or it can be used for opening new orders depending on the content of the news? I mean, does the news contain actual figures rather than planned event data? For ex, if
How can I remove those arrows autotrade history in backtesting, I am having a hard time identifying the backtest trades as it is cluttered by those autotrade history
I’m trying to export my strategy signal data into a .csv file. The file is created successfully in MQL5/ , but instead of agreement_export.csv I always get a file with .dat extension. Could someone explain why this happens, and what is the correct way to force MT5 to generate a proper .csv instead
Hello, recently i have started to backtesting an EA with the slow complete algorithm optimization setting. I have planed to do a big algorithmic test of all the features of my EA ( ~80 settings) so there is 2.2e+52 combinations. I was okay with this and when i launched, an alert message in the
Hi, I am currently using Tick Data Suite to test a very simple EA. It is a martingale EA with no entry requirements. Basically it just opens trades when auto-trading is switched on and uses martingale to exit with a profit. So basically it will make money when there is volatility and retracements
  Self learning expert  (51   1 2 3 4 5 6)
Found this on Poul Trade Forum at www.kbpauk.ru the first backtest profit factor .99 2nd,3rd, and fourth backtest better this one attached is the 5th backtest with a profit factor 4.00+ and less than 3%drawdown for this year.Tried fwd. testing this week with no trades. Seems it doesn't work on fwd....
Good morning, I got two issues. 1) On My Metatrader 5 instance in the past I used the cloud agents for simulation. That worked brilliant. Nothing was changed I only deactivated them as I wanted to peform a small test just on my pc. Now I can't reactivate them. I I right click on them, the option to
Good morning, I'm having a problem with Metatester. On Metatrader, I clearly see my 56 available threads. However, when I try to share them on Metatester, this number drops to 28, as if only one processor was detected. Could you please advise me on how to solve this problem? Thanks in advance
I have a problem, I'm running MetaTrader 5 Strategy tester with 8 agents (my computer has 16 cores). He hasn't worked for me for a month. There is no collision with the anti-virus program. Reinstalling didn't help either. All 8 testers are marked as "not connected" in AgentsManager. I have Win 11
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Good day everyone. Right now it is like this GBPUSDH1or GBPUSDrfdM15. I wonder if it is possible for MQL5 developers to add date to file name. so it could be something like: GBPUSDH1_11092025 or even GBPUSDH1_11092025_1250 (last 4 digits are the time) Best regards, ForexDuxa
Hey I deposit $15 to get the monthly vps but is not letting me purchase it
  Trend lines  (2)
Good day. i need some help please. I am trying to get the highest and lowest price of 30 candles starting 2 candles back. if i use 2 at the start point it doesn't give me the value and time of the highest and lowest bar. if i use 0 at the start point then it work fine but i don't want bar[0] and
  VPS  (2)
Hello. I purchased a VPS, but it won't open positions from my EA. What could be the problem? Without a VPS, it works normally, but with more slippage. 14:24:44.073 History: first bar USDJPY+,M1 on the server is 2025.07.03 01:48 0 14:24:44.073 History: first bar USDJPY+,M1 on the server is
Hey guys, is it somehow possible to find out how many candles are shown on a 800x600 screenshot before the screenshot is made? I know there are some variables like the chart shift and the chart scale. But I have no idea how to find out the number of candles before the screenshot is made. Any help is
I want to update the ask value for all ticks and reduce the spread by 50%, but the program only update 1 tick finally as shown by the print function . Can anyone help me to fix the problem ? void OnStart () { MqlTick ticks[]; if ( CopyTicksRange ( _Symbol ,ticks, COPY_TICKS_ALL , 0
  Will the EA crash ?  (18   1 2)
I've got an ea that downloaded all available ticks from a broker for a symbol . It reached 250 million ticks , and , the MqlTick structure is 52 bytes per tick. (13 gigabytes) It placed it all in memory .I've got decent RAM on the machine so it held. If someone with 8GB of RAM runs it will they get
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
CHistoryOrderInfo StopLoss and TakeProfit values are 0.0 at OnTradeTransaction case TRADE_TRANSACTION_HISTORY_ADD when CHistoryOrderInfo TypeDescription = ORDER_TYPE_SELL I am writing a MT5 Expert Adviser (EA) that Buys long positions and maintains both a trailing SL and a leading TP. The EA will
Hello All, I have just received version 5 build 5260. I have for the past three years and continue to generate my EA magic numbers auto magically with the following code: /* make_long_random() * * Make a big 64 bit random number * Typical uses? create a random EA magic number. * * Parameters: None *
I have a few EA's that I concider profitable but take immense amounts of time for backtesting in real ticks. Open prices work but sometimes the variance to real ticks is over 40% which make the backtesting results unacceptably unrealiable. The idea is to comission a developer here to "rewrite" the
Hi all, since the update to 5200 (and now with 5227) the strategy tester is not updating the charts if i switch between different timeframes. My expert uses 3 different timeframes - 3 indicators with separated times. After this 5220 update in the bottom of the tester chart three tabs are displayed
The string produces by CDealInfo.TypeDescription() is not a string representation of ENUM_DEAL_TYPE identifiers. For example, a CDealInfo. DealType = 0 is DEAL_TYPE_BUY in ENUM_DEAL_TYPE , but for CDealInfo. DealType = 0, CDealInfo.TypeDescription() returns the string "Buy type" (length: 8) in the
https://www.mql5.com/en/docs/runtime/imports I want to refer to the import of structs. Structs can be passed by reference. In the import section you define like void MyFunc( mystruct &data ); And within C# you define the param as IntPtr. public static void MyFunc( IntPtr data ) Then simply use
Debugging my EA, I am getting: Journal: 2025.09.03 07:37:44.290 MQL5 debugger Critical error while running expert 'PolishedGoldEA (XAUUSD,M15)'. Unknown error. The Debug tab shows no Trace data at the error. I searched Forum for Debug Critical Error and it said that the error information will be on
I added the cores and i can some they show up on my local agents (some of them not all of them). When conducting the back test the status just alternates between connecting and ready they dont actually do any work. What am I missing here
  Function  (9)
Good day I'm still new to mql5 and the following idea crossed my mind. Is it possible to create a function with a indicator inside the function. For example Check_Entry(). Now I want to create 3 indicator inside this function and call the function into the ontick function but what I want to know is