Is the Symbol Digits wrong on some symbols?

08 Sep 2019, 11:35Is the Symbol Digits wrong on some symbols?#1
158197794posts: 11since: 26 Jul 2019

see:

EURUSD    spot: 135381   double: 1.35381   Symbol Digits : 5       -> correct

GBPUSD   spot: 164158    double: 1.64158  Symbol Digits : 5       -> correct

GBPJPY    spot: 17121500    double :171.215   Symbol Digits : 3       -> wrong

ITA40:   spot: 2040840000    double:20408.4     Symbol Digits : 1       -> wrong

US500  spot:201020000      double:2010.2     Symbol Digits : 1       -> wrong

 

GBPJPY, ITA40,US500,  the Symbol Digits is wrong.  this is a bug?

09 Sep 2019, 11:13#2
Panagiotis Charalampousposts: 3381since: 13 Jan 2017

Hi 158197794,

Why do you think that symbol digits is wrong?

Best Regards,

Panagiotis


Head of Community Management at cTrader
09 Sep 2019, 16:23RE:#3
158197794posts: 11since: 26 Jul 2019

Panagiotis Charalampous said:

Hi 158197794,

Why do you think that symbol digits is wrong?

Best Regards,

Panagiotis

because         double price = spot price  *10^(-Symbol Digits).

so   :   EURUSD    spot: 135381   double: 1.35381   Symbol Digits : 5          =>    135381 * 10 ^ (-5)  =  1.35381.

but ,   GBPJPY    spot: 17121500    double :171.215   Symbol Digits : 3      =>   17121500   * 10 ^ (-3)  = 17121.5    ???????????       Is this not wrong?

09 Sep 2019, 16:30#4
Panagiotis Charalampousposts: 3381since: 13 Jan 2017

Hi 158197794,

This is not what Symbol digits means. Symbol digits indicates the digit where the minimum change in price can be expected. So for GBPJPY, the minimum change occurs at the third digit e.g. the price will be 171.215 or 171.216. It will never be 171.2154 or 171.2157. Values returned in the spot events are always specified in 1/100000 of unit of a price. Read more here.

Best Regards,

Panagiotis


Head of Community Management at cTrader
09 Sep 2019, 16:50RE:#5
158197794posts: 11since: 26 Jul 2019

Panagiotis Charalampous said:

Hi 158197794,

This is not what Symbol digits means. Symbol digits indicates the digit where the minimum change in price can be expected. So for GBPJPY, the minimum change occurs at the third digit e.g. the price will be 171.215 or 171.216. It will never be 171.2154 or 171.2157. Values returned in the spot events are always specified in 1/100000 of unit of a price. Read more here.

Best Regards,

Panagiotis

so,if it is like this,What is the general way to convert a spot value to a double value?

 

how  can I   convert    GBPJPY    spot: 17121500     to  double :171.215?

09 Sep 2019, 16:53#6
Panagiotis Charalampousposts: 3381since: 13 Jan 2017

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis


Head of Community Management at cTrader
09 Sep 2019, 16:57RE:#7
158197794posts: 11since: 26 Jul 2019

Panagiotis Charalampous said:

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis

Can all currency pairs and indices use this method?

09 Sep 2019, 16:58#8
Panagiotis Charalampousposts: 3381since: 13 Jan 2017

Hi 158197794,

Yes

Best Regards,

Panagiotis


Head of Community Management at cTrader