Add TimeSpan Parameter Type

Created at 23 Apr 2020, 11:21
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!
afhacker's avatar

afhacker

Joined 15.10.2015

Add TimeSpan Parameter Type
23 Apr 2020, 11:21


Please add support for TimeSpan parameter types, now we have to use strings and then parse it on code if we could instead just use a TimeSpan as a parameter type and use strings for setting its default value it would be very helpful and make our code much cleaner.

        [Parameter("Time Interval", DefaultValue = "-2.21:41:64")]
        public TimeSpan TimeInterval { get; set; }

And the user should be able to use a time picker to set the value, with an up/down arrow buttons or something like that.


cTrader Automate
@afhacker