Parameters Value

Created at 26 Dec 2017, 18: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!
12

1222Ht

Joined 11.11.2017

Parameters Value
26 Dec 2017, 18:15


At the moment, when I am setting a parameter for an indicator ; e.g. when i set period for EMA , i press the up and down arrow which then the value goes up/down by 1. Im wondering can i code, such that when i press the up / down arrow the value changes by 0.1 instead of 1 . 

 

Thank you so much !!


@1222Ht
Replies

PanagiotisCharalampous
27 Dec 2017, 15:00

Hi henry.tsui.1222,

Thanks for posting in our forum. Yes you can modify the parameter's step accordingly. See example below

        [Parameter(DefaultValue = 10, Step = 0.1)]
        public double Parameter { get; set; }

Best Regards,

Panagiotis


@PanagiotisCharalampous

1222Ht
27 Dec 2017, 18:28

RE:

Thank you very much


@1222Ht