Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 495
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
The terminal has updated from 509 to 600 and the EA gives this warning on compilation:
declaration of 'ErrNum' hides global declaration at line 81
and a part of the code:
Can you please tell me what the problem is?
Thanks, so changed ErrNum to ErrNumber and that's it? The warning is gone, everything will work correctly?
And one last warning in the code:
not all control paths return a value
Can you tell me what's wrong here too, please.
And one last warning in the code:
not all control paths return a value
Can you tell me what's wrong here too, please.
If the condition is fulfilled, the function returns a value.
Otherwise, there is no return from the function. Return some default value from the function
did so and the warning disappeared:
hope that's good, life in mt4 goes on :), thanks again!
did so and the warning disappeared:
hope that's good, life in mt4 goes on :), thanks again!
Guys, there are 4 simple self-made functions, apparently there is a bug in them. Please help a beginner!
(The name of each function speaks for itself, what this function should do)
help me understand
double b=NormalizeDouble(ObjectGet("b",OBJPROP_TIME1),Digits);
int shiftb=iBarShift(NULL,0,b);
Writes one warning possible loss of data due to type conversion referring to the selected b, yes, it is not datetime, but if you do so:
datetime b=ObjectGet("b",OBJPROP_TIME1);
int shiftb=iBarShift(NULL,0,b);
there will be a warning on datetime b for some reason , it seems correct and there should be no warnings.
help me understand
double b=NormalizeDouble(ObjectGet("b",OBJPROP_TIME1),Digits);
int shiftb=iBarShift(NULL,0,b);
Writes one warning possible loss of data due to type conversion referring to the selected b, yes, it is not datetime, but if you do so:
datetime b=ObjectGet("b",OBJPROP_TIME1);
int shiftb=iBarShift(NULL,0,b);
there will be a warning on datetime b for some reason , it seems correct and there should be no warnings.
You're welcome.