Hi, I'm getting different behaviour in MT5 when I translate the following code: MT4: int recentLow = iLowest ( Symbol (), PERIOD_CURRENT , MODE_LOW , 5 , 0 ); double stopLossPrice = Low[recentLow]-( iATR ( Symbol (), PERIOD_CURRENT , 14 , 0 )/ 2 ); MT5: int recentLow = iLowest ( Symbol ()
Hi, how can Orders, Positions and Deals be linked together? Is there a way to link them apart from the magic number? Best Reguards, ZeroCafeine
Is there any command to stop running program without breakpoint
I have a peculiar case - my EA works fine for few hours, then it suddenly stops taking trades. It is more or less a scalping technique
I have found that after every optimization, my hard drive health status decreases by 1%. Later, I found out that a large amount of data was written to the hard drive during each optimization.Is this normal? What is writing to the hard drive? I know that functions such as Print() will not be executed
Non USD pair like EURGPB/AUDNZD take long time taken to complete a test/optimization why is that?
(4)
Anyone experience had similar experience? My optimization use Every tick based on real tick. Is it only my problem or is because of something else
Hello boys and girls. Im new to mt5 and i have currently my EA bot running backtestings. The problem is that i want to backtest whole year of data but my strategy work only on specific time in day ( market open ). The problem is that we have summer time and winter time where hours changes. So my
Hi, do anyone know what can be the cause of the strategy tester shutdown??? I was working on a code and i can no more test it. At the beginning i though the problem was with my code, and tried to test other ea., but same problem, nothing works. the strategy tester starts and stop alone
Why does the compiler ignore the definition of a method in a class in which it is declared as PURE?
(3)
This code compiles without any errors or warnings: class CBase { private : virtual void pureMethod() = 0 ; }; void CBase::pureMethod( void ) { Alert ( __FUNCTION__ ); } Is it normal for the compiler to ignore method definition? This is deliberately incorrect code that contradicts itself
i want to read an external parameter from csv, use it on tester, and then after each test pass update those parameter and write it back to csv. i try to put the imported parameter as global variable, so does with file name string. i use slow complete algorithm and optimization target was input count
Hello MQL5 Community, I'm currently developing an Expert Advisor in MQL5 and I'm facing a challenge. I would like to incorporate the news events listed in the MetaTrader 5 Calendar tab into my EA. Specifically, I aim to prevent the EA from operating during the peak hours surrounding significant news
Hi everyone, I am trying to send a message from MT5 to Telegram using a bot. However, I could not send the message from MT5 to Telegram due to the error: Error Code 400 Description "Bad request: chat not found" Can you give some reasons why this error might have occurred? I did a lot of research
Version: 5.00 build 4070 — Issue: On the Strategy Tester window, the gui button (see Figure 1. below) freezes (sometimes they won't respond to mouse clicks, like the pause/resume button) while running test. Guess the UI thread of the window is too busy rendering the chart visualization ? plz fix
Hello everyone, I'm trying to get data from a custom indicator using the CopyBuffer() function. When I call the function giving it a buffer index greater than 4, I get only zeroes in my destination buffer despite the data being correct inside the indicator (I've double-checked with debugger and
Hi Guys, I'm probably missing something really basic but I can't find out to export the Profit column from the Strategy Tester report. I'd like to analyse the results from an EA. It's not my own EA so I can't export the data to csv. I can see the profit column if I right click on the on the results
Hi, This is my first time using forward testing option in MT5. In forward testing equity curved I found a drop on equity on the first time of forward testing period like image below. Is this how it works or there's something wrong with my forward testing
Hello MQL5 forum I have a problem with my code. Hope someone can help. When I run it through the debugger, I can see that the only line that gets executed in the for loop is the first line. The EA then ignores 'if(PositionGetSymbol(i) == SymbolOne){' and the rest of the first loop. It's a similar
SymbolInfoSessionTrade works only for the symbol of the current chart How can I get info about other symbols
I would like to make a EA of the arrow that appears on the arrow from the custom indicator. Please recommend a place where you can view the codes using the icustom function, instead of the manual.
Could I possibly ask for clarification about something. Suppose you were doing a backtest on a particular time interval and you were on the very first bar of that time interval, and then your code called a function trying to look at the previous bar. Does that mean that MT5 would get data from
Hello, I wrote a review about some EA I tought lack a feature... The author PM me and showed me that the feature is really included... I apologized to him, but when I wanted to edit my review, couldn't let me do it... How can I change my review about an EA that I purchased? Thanks in advance
Hi, I have successfully Migrated my first 3 EAs to my first VPS (running on MQL5). This works well and Im pleased with the reduced latency. However, there is something I dont understand: How do I change the lot size on the EAs running on the VPS ? I have tried to change them locally and then tried
Hello friends, I want to save the highest price after opening a new position. This is easy when only one position is open, but it is difficult for me to implement it when several positions are open. In Python, I use a dictionary for a similar situation, for example, the { tiket : highPrice}. But
If you would make an EA with the EA wizard, and chose parabolic sar for the trailing stop loss, it adds something like this code with nothing in OnTick: #include <Expert\Trailing\TrailingParabolicSAR.mqh> // global variables input double Trailing_ParabolicSAR_Step = 0.1 ; // Speed increment
In this topic, I propose to either create some list of rules for choosing between a structure and a class, or state that both options are equivalent in terms of performance
[Invalid volume]. I get this error when trying to pass the Automatic validation for EAs. Any idea?
(3)
test on EURUSD,H1 (netting) 2021.02 . 26 06 : 34 : 40 failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume] 2021.02 . 26 06 : 34 : 59 failed buy stop 0.15 EURUSD at 1.21636 sl: 1.21297 tp: 1.26825 [Invalid volume] 2021.02 . 26 06 : 35 : 00 failed buy stop 0.15 EURUSD
Im trying to convert an indicator in an EA and the arrays are giving me an issue cause mt4 gives an out of size error at one of the arrays double pv[], s1[], r1[], s2[], r2[], s3[], r3[]; then set here Oninit SetIndexBuffer ( 0 , pv); SetIndexBuffer ( 1 , s1); SetIndexBuffer ( 2 , r1);
Is there anyway to create an obj with custom prop, rather than using objectsetxxx function
How to add a string with specific size, to structure
Is it possible to change code while debugging and continue run it

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.