Download MetaTrader 5

A bit of help needed.

To add comments, please log in or register
Nkechi Sonia Kanu
430
Nkechi Sonia Kanu  
Hello everyone, am building an EA to display the pips in a candle stick as a comment. But am confuse on how to go bout it.

I used ((High[1]-Low[1])/_Point) but when displayed am seeing a different value. 

When i use((High[1]-Low[1])*_Point) i get a totally different value too. 

so please guys what do you think should 
be the correct formula. 
Keith Watford
Moderator
8293
Keith Watford  

I used ((High[1]-Low[1])/_Point) but when displayed am seeing a different value.

 

What do you see, what do you expect to see. How are you displaying it?

whroeder1
17125
whroeder1  
Nkechi Sonia KanuI used ((High[1]-Low[1])/_Point) but when displayed am seeing a different value.
That will display the size of the previous candle in points. A PIP ( What is a TICK? - MQL4 forum) is not a point. adjusting SL, TP, and slippage; for 4/5 digit brokers and for JPY pairs.
Nkechi Sonia Kanu
430
Nkechi Sonia Kanu  

Thanks guy for helping out but i found a better way yo do it : ((High[1]-Low[1])/_Point)/10

whroeder1
17125
whroeder1  
Nkechi Sonia Kanu:i found a better way yo do it : ((High[1]-Low[1])/_Point)/10
Which fails on a 4 digit broker, exotics and metals. Read the links provided.
To add comments, please log in or register