Find pip value different price???

To add comments, please log in or register
Nuttasant
6
Nuttasant  

Hi I'm just new in mql4 programmer. I try to find the different pip between Open[1] with Close[1].

 My plan is :

 

if(pip value(different between Open[1] with Close[1]) > 20 pip)

{

  OrderSend();

Simon Gniadkowski
17644
Simon Gniadkowski  
zinferno:

Hi I'm just new in mql4 programmer. I try to find the different pip between Open[1] with Close[1].

 My plan is :

<CODE REMOVED>

Please read some other posts before posting . . .

Please edit your post . . .    please use the   SRC   button to post code: How to use the   SRC   button. 

 

 

Do you mean Pip or Point  ? 

whroeder1
17960
whroeder1  
zinferno: I try to find the different pip between Open[1] with Close[1].
double pipDifference = (Close[1] - Open[1]) / pips2dbl;
if( Close[1] > Open[1] + 20 * pips2dbl ) ...
double pips(double delta){ return( delta/pips2dbl); }
:
if( pips(Close[1] - Open[1]) > 20 ) ...


pips2dbl: 4/5 digit and ECN brokers

To add comments, please log in or register