
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
I have tested the standard ExpertMACD Expert Advisor in the strategy tester, which is delivered together with MT5, it generates errors:
2013.03.30 19:18:09 Core 2 genetic pass (0, 15) tested with error "OnInit failed" in 46 ms
2013.03.30 19:18:08 Core 1 genetic pass (0, 13) tested with error "OnInit failed" in 32 ms
2013.03.30 19:18:07 Core 2 genetic pass (0, 5) tested with error "OnInit failed" in 0 ms
I found out by searching that the error is in the module: "SignalMACD" when optimizing Fast and Slow MACD periods (when ticking the boxes in the strategy tester parameters).
Has anyone encountered such a problem and how to deal with it? (when there is only one tick it somehow works, but there are errors as soon as you check two ticks)
Set a different range of changes Slow and Fast. The error will disappear. You can just ignore it.
Is it possible to write a function with variable number of parameters in MQL5? For example, like in StringConcatenate(...) or Print(...)?
Is it possible to write in MQL5 a function with a variable number of parameters? For example, as in StringConcatenate(...) or Print(...)?
For example, you can make an array whose size will be equal to the number of your parameters as a parameter.
I'm interested in a variable number of parameters like in StringConcatenate. Something like this: string Concatenate(string s, ...); Is it possible?
Similar is possible. Up to 64 parameters can be passed to a function.
Similar is possible. Up to 64 parameters can be passed to a function.
And we can get arbitrary types for all the arguments only by overloading? That is, not only string, but also double can be passed to a function, for example. string s = Concatenate("abc",2.0, "def");
And arbitrary types for all arguments can be achieved only by overloading? That is, not only string, but also double can be passed to the function, for example. string s = Concatenate("abc",2.0, "def");