Find pip value different price???

 

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();

 
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  ? 

 
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

Reason: