Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1154
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
MT4
What is this item and what does it do, I can't find a description anywhere?
How do I disable it by default?
I'm trying to run the crypto example from the manual, butI use CRYPT_AES256 instead ofCRYPT_DES method. The result is error 4029 afterCryptEncode method
I'm trying to run the crypto example from the manual, butI use CRYPT_AES256 instead ofCRYPT_DES method. As a result, error 4029 afterCryptEncode method
Figured it out. He needs more careful key.)
Hello!
I'm dumb and can't figure it out myself, please advise what the problem could be or at least point me in the right direction.
Different indicators are starting to show a different piece of history synchronously. It happens sometimes, not every day.
I thought the reason is that indicators do not correctly process dynamically loaded history. I tried everything that concerns the correct update of the indicator on the updating history, I don't know what else should be done to prevent this.
Alpari broker. MT5 build 2363 from 13.03.2020.
The screenshots show the "lost" version first.
Then the correct version after manual update.
Hello.
I have this question in MQL5. How can I force the OnChartEvent() function to start? Is there any standard way to do it?
For this purpose, I use ChartNavigate() function and run it from OnChartEvent(). But it works unstable - when a lot of ticks come in, often OnChartEvent() doesn't restart after calling ChartNavigate() for some reason. I can't understand how it's connected - ChartNavigate() and tick arrival rate, but it happens nevertheless.
Hello!
I'm dumb and can't figure it out myself, please advise what the problem could be or at least point me in the right direction.
Maybe I added this recently for nothing...
RemovedReplaced it with...
return(false);
I'll keep an eye on it.
Please tell me about the standard indicators that come with the MT5, how do they work? Do they flop like I did in the screenshots above?
Good day all!
I am mastering double OnTester() function and TesterStatistics( ) function. I wrote a simple code for my tester in MT4, which opens one order every day at 10:00, at 16:00, at 20:00 and at 01:00. At the end of testing, the TesterStatistics( ) function returns the smallest balance value (i.e. relative drawdown).
PROBLEM
TesterStatistics( ) returns the smallest balance value for ALL open orders
QUESTION
What language construction can be used to make TesterStatistics() return the smallest balance value only for an order opened at some particular time, for example at 16:00. At this, all orders specified in the code should be tested simultaneously. It means, TesterStatistics should track the balance dynamics for only one order opened at 16:00 and at the end of testing, display the minimum balance value only for the order opened at 16:00.
I would be very grateful if you could insert the required language construct in my code. It will allow me to quickly understand the algorithm of solution of my problem.
Here is my code.
Good day to all!
I have mastered double OnTester() and TesterStatistics( ). I have written a simple code for my tester in MT4, which opens one order at 10:00, at 16:00, at 20:00 and at 01:00 every day. In the end of testing, the function TesterStatistics returns the smallest balance value (i.e. relative drawdown).
PROBLEM
TesterStatistics( ) returns lowest balance value for ALL open orders
QUESTION
What language construction can be used to make TesterStatistics() return the smallest balance value only for an order opened at some particular time, for example at 16:00. At this, all orders specified in the code should be tested simultaneously. I.e., TesterStatistics( ) should track the balance dynamics of only one order opened at 16:00 and return the minimum value of the balance for the order opened at 16:00 only.
I would be very grateful, if you could insert required language in my code. This will allow me very quickly to understand the algorithm to solve my problem.
Here is my code.
What is it?
Is this what it is?
Thank you for your feedback. Thanks to you I realized that specifyingTesterStatistics( ); function together with declaration of global variable H ... was my mistake. I fixed it.