I have a shortcut with these properties: Target: "D:\Metatrader3\MetaQuotes\MetaTrader5\terminal64.exe" /portable Start in: "D:\Metatrader3\MetaQuotes\MetaTrader5" at this location: "D:\Metatrader3\MetaQuotes\MetaTrader5\portable.lnk" When I double-click the shotcut, it opens the terminal and takes
I have 2 classes with the same name but in different namespaces. When one of those classes (in the sub-namespace) inherits from the other (in the parent namespace), I get compiler errors. namespace MainSpace { class CMyClass { public : CMyClass() { } }; namespace SubSpace
Hi, I want to use information from one EA with another. One is processing information and want to get a signal or var from the processing eA to the execution EA. Can I create a class which i can import or how to go about
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
Hello community, when i want to backtest in MT5 against BTCUSD, the syn procedure never stops. Have alredy checked out what happens when deleting base folder. No fix. This is what the journal shows: MD 0 01 : 53 : 31.771 Core 08 BTCUSD: history for 2025 year synchronized DS 0
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
Hello all, Long time lurker, first time poster, as I always find my answer by searching the forum. Not this time though, and I have been scratching my head for a while. After calling ChartSetSymbolPeriod (either to change Symbol or Period), my EA deinitializes (as it should), my chart is updated
Hello, I am building an Expert Advisor and need help with one function. I need a function called DeletePendingOrders that loops through all pending orders and deletes any that match my EA's magic number. Can you please show me the correct code for this function and where to put it in my EA? Here is
Hello, i search any solutions for close one or more order opened manualy with my EA manager following the instruction "CLOSE ALL ORDER WITH COMMENT...". Example: I have a very good and profitable manual strategy with one or more position on markets... In a manual trading is not possible specifi a ID
Hello Developers, While attempting to upload my EA to the Market, I encountered a confusing error. If anyone has experienced this before, I’d really appreciate your insight on what it means and how to resolve it. Any assistance is highly appreciated test on EURUSD,H1 (netting) strategy tester report
I have probably misunderstood the documention for the ArraySort() function in MQL5. https://www.mql5.com/en/docs/array/arraysort states "Sorts the values in the first dimension of a multidimensional numeric array in the ascending order". When I use this function, my arrays are sorted with Array[0]...
I am a newbie, programming a Chandelier Exit with EMA entry and exit strategy. When I backtest it, it’s only active sell order , but buy order useing the same logic code, so I am confusing why is no any active buy order and also liquidating when the liquidation conditions are not met. Is my program
Hi, after switching from Win7 to Win10 or since b.3180 the function PlaySound() no longer plays any .wav files. I constantly get the error 5019 = File does not exist. Can someone check where the Sounds (Path) folder is located? Thanks a lot! Calli
Hi! I wanted to ask if someone could help me understand my logic better. Is it incorrect to interpret: Volume[1] > Volume[2] && Open[0] > Pivot Point // Sell orders have been absorbed and now the market is in a bullish direction Volume[1] < Volume[2] && Open[0] > Pivot Point // buy orders have been
I am trying to use an old file i used before without any issue. but now i get "wrong parameters count, 6 passed, but 0 requires Label.mqh 122 9" error!! also this happens to other include files in my mt5 too. never had this issue before! both zero parameters and 6 parameter's format of function
Any broker which offers micro lot demo account? I want to back test my strategy for micro lots. To do that I need a micro lot demo account. Most brokers offer real micro lot account. But I know of none that offers a micro lot demo account. I know I can use 0.01 of a regular account to simulate micro
Dear MQL5.community, I am experiencing extremely frustrating and persistent compilation errors with my Expert Advisor (EA) in MetaEditor, and I've exhausted all standard troubleshooting steps. I'm hoping someone can provide insight into what might be a deeper issue with my MetaTrader 5 installation
I have an indicator that uses iMA along with iATR to generate a new indicator; I am able to attach this to a chart without any error. Handle = iMA(_Symbol, _Period,...). There is no error in handle generation. I try to use this indicator in my EA with the iCustom function with proper
Can anyone help? Im getting this error but tell me if im wrong. This means im not allowed a hedging function. My ea doesnt hedge byt it does open to orders either side of the market how can i fix this
Hi, i downloaded tick data from dukascopy, to get 100% quality, but it doesnt match real trades, while the mt5 symbold does. So i assume dukascopy doesnt match my brokers quotes or something? How can i know what source my broker uses so that i can download it? Thanks
Hello there, I am following the instructions for WebRequest in the documentation of MQL5. I am using the example implementation for testing, but I get the "error 4014". According to my understanding, it means that you are not allowed to make the web request. However, I have maintained the web
Hi I was wondering if Dukascopy historical data works for mt5 and is it for every tick based on real ticks? Also if so what are the steps to download these bars and ticks? I tried tickstory but it was missing custom timeframes To download the ticks do I download "Candlestick: 1 Tick" ? and to
I was modifying a couple of EA's today, but after copying/pasting some lines of code I suddendly got a compilation error regarding the Event Handler not found, I confirmed all the code was correct and decided to restart the both MetaTrader 5 and MetaEditor applications. After doing this it's not
Please help me understand: I am running the tester strategy with an expert of the MT5 market on gold with four different brokers Dukascopy, Swissquote, FP-Market and Ava-Trade and I get completely different results. In particular with Swissquote and Dukascopy the result from 01.01.24 to today is
Hi, I encounter this error when I execute my code: ')' - open parenthesis expected , I am unable to solve this error, I don't know what the problem is, would please help me to solve this error if possible? Here is my code: //+------------------------------------------------------------------+ //|
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
I have recently run some 1, 3 , 5, 10 and 15 year back tests with my EA. I came across something I have never noticed before and I am pretty concerned about it. I ran a backtest from Jan of 2015 to Current data and my maximal DD was at roughly 10% See picture one. But when I run from 2015 to 2020
I have written an EA to product training data for a Python forecasting model. Most seems OK but the output from the Bollinger Bands is the same for HI, MID & LO. The folloing is the Terminal LOG 2025.08 .04 15 : 27 : 53.368 Create_Training_DataV2_For_LSTM_v2 (XAUUSD,M5)
the profiler of my mt5 is extremely slow. with any EA (even the simple ones included with MT5). not sure what's going on. Even after I stop the backtest and then have to stop the profiler, I don't always get results in the Profiler tab . what should be my troubleshooting steps? I can't find anything
Hello, I'm having an issue where compiling a .mq5 file from the command line (MetaEditor64.exe /compile:<path> /log:compile.log) silently fails without generating an .ex5, no errors and no logged issues. I stumbled upon this issue whilst using Visual Studio Code in combination with the MQLTools

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.