Add Support for DateTime and DateTimeOffset Parameter Types

Created at 23 Apr 2020, 11:24
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 Support for DateTime and DateTimeOffset Parameter Types
23 Apr 2020, 11:24


Please add DateTime and DateTimeOffset parameter types:

        [Parameter("Time with Offset", DefaultValue = "2020-04-22T14:00:00.0076536+03:00")]
        public DateTimeOffset TimeWithOffset { get; set; }
        
        [Parameter("Timet", DefaultValue = "2020-04-22T14:00:00.0076536")]
        public DateTime Time { get; set; }

The default value should accept a DateTime or DateTimeOffset string in ISO format, and the user will be able to use a date time picker to set the parameter value.


cTrader Automate
@afhacker