Download MetaTrader 5

MQL4: DIGITS AND POINT * 10

To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
Mohammad Soubra
25004
Mohammad Soubra 2016.01.06 13:09 

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
9625
Keith Watford 2016.01.06 13:42  

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
30742
Alain Verleyen 2016.01.06 13:47  

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
25004
Mohammad Soubra 2016.01.06 14:19  
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
25004
Mohammad Soubra 2016.01.06 14:22  
Alain Verleyen:

Thanks Alain
To add comments, please log in or register