Hello, wondering if anyone could help out, im trying to code my EA in Mql5 but i get this error, Any help on how to resolve this. Thank you in Advance Note: The starthour and endhour are already defined Part of the Code concerning time... void OnTick () { datetime currentTime = TimeCurrent ();
Hi, I'm having trouble compiling a few simple time-related helper functions in my MQL5 code. The compiler gives me the following errors: 't' - some operator expected , 'TimeHour' - undeclared identifier , Similar errors for TimeDayOfWeek and TimeDay Here's an example of the code that's causing the
I know about coding and I am recently got into meta trader.I would like to create a scanner/program that will scan for Breakout in all instrument ( I am using icmarkets ) What kind of Breakout you might ask? For now something simple # close below previous bar low # candle is 3 times bigger than...
someone pls help me. this error is not gotting resolve. Gold_Hedged Scalper.mq5 Trade.mqh Object.mqh StdLibErr.mqh OrderInfo.mqh HistoryOrderInfo.mqh PositionInfo.mqh
undeclared identifier bot_2025_28_8.mq5 173 12 'j' - some operator expected bot_2025_28_8.mq5 173 34 undeclared identifier bot_2025_28_8.mq5 217 12 'j' - some operator expected bot_2025_28_8.mq5 217 34 4 errors, 0 warnings 4 0
I have something like this, which works as usual: struct TradeSettings{ string msg; void toString() const ; } // method implementation defined outside of struct body TradeSettings::toString(){ return msg; } However, if I have something like this, I would expect
I have a custom indicator with the following inputs (in the following order): input int period = 10 ; // first position in the indicator settings input bool Bold = true ; // second position in the indicator settings and register the custom indicator within a new class with a property: CiCustom
By the following command we can change the current chart to a specific chart. But it does not work or does not work properly when it is holiday (for example in Sunday or Saturday) or when the chart is offline. Is there another way to change charts (except "Ctrl+Tab")? ChartSetInteger (chart id
My EA is good for real account and backtest, however, upload to sell and can't pass the test of MQL5.com How is going
Hello everyone, good morning. I have a question about the Strategy Tester . When I optimize the parameters of an EA, I usually split the history into two parts: backtest and forward. The problem is that the tester runs the forward even for parameter sets that already gave negative results in the
Hi guys I’m trying to modify a trade with ctrade , but I get this error: 2025.09 .19 09 : 15 : 49.991 PARTIALTAKEandSTP (EURUSD,M5) Requested SET SL 1.18000 for ticket 21821394 (file symbol: EURUSD) 2025.09 .19 09 : 15 : 49.991 PARTIALTAKEandSTP (EURUSD,M5) SetPositionStopLoss: PositionModify
Hi, I cannot find the answer in earlier questions about this. I've attached the source of the custom indicator and the EA. I did test this on the m5 timeframe (but that doesn't matter) When you compare the figures in the journal it's obvious that they don't match with the indicator. And please don't
Hi, I am running MT5 on Wine (Linux Ubuntu) and I get this message in the journal tab of the 'Strategy Tester Visualization' window, "IO operation failed with code e9 (233)" The log file gives the same info, the ending lines are NP 0 13:50:34.592 Tester final balance 10000.00 USD RJ 0 13:50:34.592
Hello everyone, Well scorpion provided me with a 2Gb file of tick data of EUR/USD sinc 1998 I believe. I know that MetaTrader and my computer itself cannot support that much memory (I have 1GB of RAM). So I was wondering if there was any way to chop up the file to get different files to be able to
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 have purchased 4 EA recently. I have a Vps with several brokers (each broker has its own mt5 plattform) For some reason, in some brokers mt5 plattform I cannot see all of the EAs i purchased (only 23 of them). I can t even find the EA in the market place as if it was somehow deleted or banned. But
Hello everyone, I'm currently working on a robot, and I have to say that I'm confused by the issue I'm facing. Let me explain: The robot works perfectly during backtests, there are no, and I know it, "out of range" errors, no division by zero , no infinite loops. Similarly, the #property strict is
does anyone had same problem ? how to solve it ? ? thanks
Hi everyone, I published 3 version of an EA, one basic, one intermediate and one advanced. The basic contains only a part of the inputs available on the intermediate and then on the advanced, and so on. So the advanced can do the job of intermediate and basic, and so on. But using a subset of
Hi, today when I opened mt5 strategy tester I am getting an error, while it was working fine when I turned off my pc last night. When trying to backtest I get the message "connection closed" on core 1. I have tried to install a new mt5 terminal but I get the same error message. Does anyone know what
I have an EA that opens trades too late, instead of opening a trade at 12:00, it opens a trade at 12:05. My ea has to read an excel spreadsheet first which is quite large. Could it be because EA has to use ms excel which is a slow app(to launch)? Did anyone have such an experience? Is excel too
Hi guys, I used to experience intermitent issues with the Tester Visualization hanging on "Waiting for Update" but usually if I forced close it and retried a few times or changed the symbol it would start working again. However, now I am completely stuck. No matter what symbol I try, how many times
Hi All, I pride myself on finding answers to my problems as I learn MQL5. I have however, been stumped by this one. I just need the name of the currently active profile. A search returns Current.Profile() but I cant find any reference to it nor does it work in the editor. The reason I am looking for
Hello, I noticed a strange behavior when using the default "Moving Average" EA on the MetaQuotes demo account. (It is not my own EA, just the built-in default one.) Steps to reproduce (see attached screenshots): Open two charts: EURUSD H1 (left) and USDCHF H1 (right). Drag and drop the "Moving
I have just moved from MT4 to MT5. I was looking forward to the additional features that the MT5 Strategy Tester provides, but I am hugely disappointed in some aspects that are far inferior to the MT4 Strategy Tester. I have an EA with a large number of parameters, and when I do a Genetic
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
I have had several issues with EAs around this: When I change the risk level from 0.01 to 0.05 or something, it does not change on the EA, and the EA keeps making orders at 0.01. I've tried many different things to re-set the platform or EA. I'm using Pepperstone, MQL5, AUX/USD on 1 or 5 minutes
I just bough intel core ultra7 265k in the window showing 20cpu but after optimizing with MT5 it has only 8Agent and also in Agent manager showing only 8
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
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.