![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
If you're interested, check out what I've been up to in terms of fashion. I'm off to the garden to dip potatoes... I'll be there in the evening...
ZS. I've derived the value that occurs the maximum number of times in a number series.
If you're interested, check out what I've been up to in terms of fashion. I'm off to the garden to dip potatoes... I'll be there in the evening...
ZS. I deduced the value that occurs the maximum number of times in a number series.
Of course, interesting, thank you! We'll be testing.
If you're interested, check out what I've been up to in terms of fashion. I'm off to the garden to dip potatoes... I'll be there in the evening...
SZY. I've deduced the value that occurs in the numerical series the maximum number of times.
I also recommend that you add something like a margin of error (or hit interval) to calculate the mode of the real numbers, which you can adjust and thus tune the sampling accuracy.
2 Idalgo :
If you are doing statistical analysis (that's what I' m interested in at the moment), would you like to share your thoughts about its use? Feel free to create a separate thread. I would be happy to support the topic.
I also recommend to introduce to calculate the mode of real numbers something like an error (or another interval of hit), which can be adjusted and thus adjust the accuracy of sampling.
Formulas, drawings, explanations of how and what to do... :-) I hope you understand that there are several ways of doing what you suggest. Describe your variant.
And for the first time there is a parameter d - the accuracy of numerical values, the number of digits after the decimal point.
Yes, the accuracy of d values is an option, but in this case we have a number verified on an interval of 10^(-d).
Yes, the accuracy of d values is an option, but in this case we have a number verified on the interval 10^(-d).
For float numbers, it's better to use a hardcoded value of the spread.
f1 + df > f2 > f1 - df ==> f1 == f2. Or use normalization.
Your code definitely has problems with numbers close to zero, as well as ALL negative numbers.
Revise the code.
Yeah, I forgot about the negative a bit, I was in a hurry.
Or
error handling:
I have this question.
Why do you handle error 131 ( ERR_INVALID_TRADE_VOLUME: Incorrect volume) with a long pause.
Is it an error or I don't understand something.
Hello Igor. I have been following this article with great pleasure. I have decided to examine in detail your function of order placing, or to be more precise, its error block.
error handling:
I have this question.
Why do you handle error 131 (ERR_INVALID_TRADE_VOLUME: Incorrect volume) with a long pause.
Is it an error or am I missing something?
Hello Vasily! You are absolutely right! It's my mistake due to my absent-mindedness. Thank you for pointing it out to me. Error 131 should be handled in the same way as errors 2, 64, 65 and 133, i.e. the EA should be disabled.
If you block the EA at this point, there may be open positions left by the EA, which would be a disaster.