Is the Symbol Digits wrong on some symbols?

Created at 08 Sep 2019, 11:35
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
15

158197794

Joined 26.07.2019

Is the Symbol Digits wrong on some symbols?
08 Sep 2019, 11:35


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?


@158197794
Replies

PanagiotisCharalampous
09 Sep 2019, 11:13

Hi 158197794,

Why do you think that symbol digits is wrong?

Best Regards,

Panagiotis


@PanagiotisCharalampous

158197794
09 Sep 2019, 16:23

RE:

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?


@158197794

PanagiotisCharalampous
09 Sep 2019, 16:30

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


@PanagiotisCharalampous

158197794
09 Sep 2019, 16:50

RE:

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?


@158197794

PanagiotisCharalampous
09 Sep 2019, 16:53

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis


@PanagiotisCharalampous

158197794
09 Sep 2019, 16:57

RE:

Panagiotis Charalampous said:

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis

Can all currency pairs and indices use this method?


@158197794

PanagiotisCharalampous
09 Sep 2019, 16:58

Hi 158197794,

Yes

Best Regards,

Panagiotis


@PanagiotisCharalampous

BenjaminR
04 Oct 2019, 18:55

Where are the symbol digits stored? I need to work with them but I do not find. Thanks. 


@BenjaminR

firemyst
07 Oct 2019, 03:42

RE:

Be Rich said:

Where are the symbol digits stored? I need to work with them but I do not find. Thanks. 

Symbol.Digits ?


@firemyst