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
That is, I need after this line - int OnInit()
Insert this -
It will be like this-
Thank you.
Not quite like that. You need to compare the parameter "mafastperiod" and "maslowperiod".
Not exactly. You need to compare the parameter "mafastperiod" and "maslowperiod".
So I only need to add one line? Like this:
//+------------------------------------------------------------------+
//| Expert initialisation function |
//+------------------------------------------------------------------+
int OnInit()
{
if(Inpmaslowperiod>=Inpmafastperiod)
{
OnInit() in which no cases where "fast" is greater than or equal to "slow" are allowed:
OnInit() in which no cases where "fast" is greater than or equal to "slow" are allowed:
Thanks, it seems to work, the code compiled.
But these two lines are the same, is that how it should be?
Thanks it seems to work, the code compiled.
But these two lines are the same, should they be?
No. You copied an extra line. Take out one line.
No. You copied the extra line. Take out one line.
Thank you very much. Is it possible to add this to any EA with two muves?
Thank you very much. So you can add it to any EA with two muves ?
Yes, the main thing is to write the variable names correctly.
Vladimir tester writes an error. Please see what my error is.
Everything is normal.
"incorrect input parameters" is just the code triggering
in the process of genetic optimisation
It's all right.
"incorrect input parameters" is just a code trigger.
during the genetic optimisation process.
Thanks, but in the optimisation window, some lines are red because of this ?