Custom Indicators Help with Round

Created at 08 Jun 2016, 01:55
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!
HE

hedgehog

Joined 24.04.2016

Custom Indicators Help with Round
08 Jun 2016, 01:55


Could anybody help me pls with my little issue?  As U can see in image below there is some difference between my custom indicator and the default ctrader one. I would like to set indicators numerical attributes as round numbers. Is it possible?

Thanks.

 


@hedgehog
Replies

cyfer
08 Jun 2016, 02:27

Scale Precision is what you're looking for I think

    [Indicator("Your Indicator",ScalePrecision = 2, AccessRights = AccessRights.None)]

2 means 2 decimal number , 0 means all will be round numbers 

 


@cyfer

hedgehog
08 Jun 2016, 15:06

Great! Thanks for your  reply.


@hedgehog