Thread: Ask!
View Single Post
  #1110 (permalink)  
Old 06-04-2008, 06:49 PM
IN10TION's Avatar
IN10TION IN10TION is offline
Senior Member
 
Join Date: Mar 2007
Posts: 558
Blog Entries: 1
IN10TION is on a distinguished road
if(MathAbs(Open[i]-Close[i])*1/Point<=2)


this will do it for you...
let me know




Quote:
Originally Posted by forexcel View Post
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
Reply With Quote