Questions from Beginners MQL5 MT5 MetaTrader 5 - page 232
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Here's the code:
//--- To work with brokers using 3 and 5 digit quotes,}
Any advice?
Hello everyone!!! I'm a beginner. I want to ask: When compiling EA, I get in errors:'StopLoss' - declaration without type.
Hi all!!! I'm a beginner. I want to ask: When I compile an EA, I get the following error message: 'StopLoss' - declaration without type.
Here's the code:
//--- To work with brokers using 3 and 5 digit quotes,}
Any advice?
This should be better.
Hello. I am struggling with launching external files for the second day. Please, advise what is wrong.
But it will only be getting the handle of the graph. And the graph itself is contained in a higher class window (parent window). In ShellExecuteA you should substitute the handle of the parent window.
Look at the Transparent MetaTrader 5 script: it has the function of getting the handle of the terminal through ChartID().
MQL4 has a good function - Barshift. Unfortunately, it is not available in MQL5. As a variant to replace this function, you can copy timeseries data from the start date (for which the shift is looked for) and see the number of copied elements. But if we need to process a lot of different dates, we don't want to overload the computer by constant multiple copying of time series. Of course, we are forced to try to find the right values using array enumeration. And here we come to the question. :) After searching through the documentation, I have found only one standard function, which searches for values in an array: ArrayBSearch. But it does not work with arrays containing datetime data. Is there a standard function to search by date inside datetime array? Or is it possible to use some kind of data conversion?
Greetings all!
MQL4 has a good function - Barshift. Unfortunately, it is not available in MQL5. As a variant to replace this function, you can copy timeseries data from the start date (for which the shift is looked for) and see the number of copied elements. But if we need to process a lot of different dates, we don't want to overload the computer by constant multiple copying of time series. Of course, we are forced to try to find the right values using array enumeration. And here we come to the question. :) After searching through the documentation, I have found only one standard function, which searches for values in an array: ArrayBSearch. But it does not work with arrays containing datetime data. Is there a standard function to search by date inside datetime array? Or is it possible to use some data conversion?