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
Hello Vladimir. Is it possible to make buy, sell separately in your Expert Advisor and doles by trend?
Thank you.
I have not yet platinised the edits to this code.
I haven't platinised the edits to this code yet.
Vladimir, please give me a hint. After running in the tester, in the report for some reason the parameters are reversed: mafastperiod-42, and maslowperiod-12. In fact, the fast one should be less than the slow one. I ran it twice, and both times I got such results.
Thank you.
Vladimir, please give me a hint. After running in the tester, in the report for some reason the parameters are reversed: mafastperiod-42, and maslowperiod-12. In fact, the fast one should be less than the slow one. I ran it twice, and both times I got such results.
Thank you.
"fast", "slow" - these are just labels, verbal labelling of a parameter. But at the end of the day, all parameters are numbers. And since you turn on genetic optimisation and search among thousands of results, but you can't rule out such reversals of consciousness :). A digit can be anything, no matter how you call it - "slow" or "fast".
Sometimes I specially put a restriction like "slow" cannot be more or equal to "fast", and sometimes I don't put it and end up with interesting results.
"fast", "slow" - these are all just labels, verbal labelling of a parameter. But in the end, all parameters are numbers. And since you switch on genetic optimisation and search among thousands of results, but such reversals of consciousness are not excluded :). A figure can be any number, no matter how you call it - "slow" or "fast".
Sometimes I put a ban like "slow" cannot be more or equal to "fast", and sometimes I don't put it and get interesting results.
How can I set such a ban in this EA?
Thank you.
And how to put such a ban in this EA?
Thank you.
In OnInit() write a comparison of two parameters. If the condition is not met - then unload the EA with an error.
In OnInit() write the comparison of two parameters. If the condition is not met - then unload the EA with an error.
Thank you.
For me it is not feasible for now. Are you not planning to edit this code at all ?
Vladimir, please tell me in this EA of yours:https://www.mql5.com/en/code/19578 there is a ban like "slow" can not be more or equal to "fast". If not, please give me a link where I can see it.
This EA has such a protection:
here it checks the parameter to see if it is greater than zero and there is a flag.
But in the EMA Cross Contest Hedged code, there is already protection of two averaging periods of two Moving Average indicators:
But in the EMA Cross Contest Hedged code, there is already protection of two averaging periods of two Moving Average indicators:
That is, I need after this line - int OnInit()
Insert this -
It will look like this-
Thank you.