MQL4: DIGITS AND POINT * 10

 

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 * ?????????????????;
 

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!

 

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)

 
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 

 
Alain Verleyen:

Thanks Alain
Reason: