mountainman:
How do you know ? did you Print() all the variables so you can see what they are ? comparing double values is problematic, you should read this and ensure ou are comparing doubles in a valid way : Can price != price ?
My EA is running into a logical error. It should only enter trades at certain times where two conditions are met. The EA enters trades when only one of the conditions are met. The second trade condition that is not working is
This "if" statement is always registering as true and it shouldn't.
RaptorUK:
How do you know ? did you Print() all the variables so you can see what they are ? comparing double values is problematic, you should read this and ensure ou are comparing doubles in a valid way : Can price != price ?
And see here too https://www.mql5.com/en/forum/140534
How do you know ? did you Print() all the variables so you can see what they are ? comparing double values is problematic, you should read this and ensure ou are comparing doubles in a valid way : Can price != price ?
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
Thanks, Mac