1. 100% BEST way for u to answer own question is to use Print() statement - u MUST BE SURE that: PRICE_CLOSE and WB contain sensible data.
easy to put in Print()'s and that way only take seconds to find issue...
2. u must also consider [but maybe not for this post] that double values MUST be NormalizedDouble(aDoubleValue,Digits) - something to keep in mind...
Best

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
Dear All,
I trying something simple but its not working...can somone be kind enough to tell me what im doing wrong ?
The EA should buy when EURUSD is between 1.4501 and 1.4510.
The code for that is:
Unfortunatly it doesn't work.....
Oddly enought if it is done this way...
I will work correctly, which means that the problem is in this line:
What's wrong with those two conditions ??
Many thanks for your attention,
regards,