if(MathAbs(Open[i]-Close[i])*1/Point<=2)
this will do it for you...
let me know
Quote:
Originally Posted by forexcel
Hello All:
I am trying to code my first indicator/ea and i need some help.
Here is how i define my doji: if(Open[i]==Close[i])
Now, if i want to redefine my doji as the Open and Close are within 2 pips up or down, how do i code it?
To clarify: let's say Open = 1.5510 and close is either 1.5512 or 1.5508.
Any help will be appreciated.
Regards,
forexcel
|