How to increase the fractional digits in custom indicator chart

Created at 23 Feb 2013, 22:15
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!
HU

Hugoman

Joined 26.01.2013

How to increase the fractional digits in custom indicator chart
23 Feb 2013, 22:15


Hello all,

when a custom indicator will be displayed on a chart, the fractional digits will be rounded to 2 digits by default. Using the same indicator (i. e. True Range) provided by cTrader the the displayed fractional digits are 4 (see screenshot below).

I could not find any capability to customize or to overwrite the default number of displayed fractional digits. In often cases it is necessary to see a more precise value on the chart than displayed only with 2 fractional digits.


How can I customize the number of fractional digits displayed on the chart?

 

Thank you very much in advance.

regards, Hugoman


@Hugoman
Replies

cAlgo_Fanatic
25 Feb 2013, 11:44

You can use this code:

    [Indicator(ScalePrecision = 5)]

See scaleprecision in the API Reference section.

 


@cAlgo_Fanatic

Hugoman
25 Feb 2013, 12:30

RE:
cAlgo_Fanatic said:

You can use this code:

    [Indicator(ScalePrecision = 5)]

See scaleprecision in the API Reference section.

 

Hello Support,

 

thanks a lot for this information. Exactly what I was looking for. Seems to be very fresh, I was not aware of it before (or it was not obvious to me). Anyhow, thanks a lot.

 

Regards, Hugoman


@Hugoman