Download MetaTrader 5

MQL4: DIGITS AND POINT * 10

To add comments, please log in or register
Mohammad Soubra
33198
Mohammad Soubra  

Hello every one, 

 :)

 

Usually we used to code: 

   double trade_point;

   if (Digits == 3 || Digits == 5) trade_point = Point * 10;

But what if we have another chances such as the gold or silver or..... 

The gold as u know is not 3 and not 5 digits 

 So, what is the replacement of the Point * 10 as the following:

   double trade_point;

   if (Digits == 2 ) trade_point = Point * ?????????????????;
Keith Watford
Moderator
10536
Keith Watford  

Different people have different definitions of what a pip is with commodities such as Gold. So you should code using Point.

Don't post in all Capitals, that is considered shouting and is extremely rude!

Alain Verleyen
Moderator
34525
Alain Verleyen  

Forum on trading, automated trading systems and testing trading strategies

For you, a Forex Pip is?

Rogerio Figurelli, 2014.02.15 14:58

  • 0.0001 for EUR/USD forever
  • a point, whatever value point is now or will be in the future
  • I'm not sure about
  • another option (please explain)

Mohammad Soubra
33198
Mohammad Soubra  
Keith Watford:

Different people have different definitions of what a pip is with commodities such as Gold. So you should code using Point.

Don't post in all Capitals, that is considered shouting and is extremely rude!

Sorry

 

 

... it has been updated as above 

Thanks for the knowledge 

Mohammad Soubra
33198
Mohammad Soubra  
Alain Verleyen:

Thanks Alain
To add comments, please log in or register