Is there a way to input a full DateTime into an indicator?
I want the UI input box to display "mm/dd/yyyy hh mm ss AM/PM" and be editable for user input.
I see that the following code produces an input box that displays "12/30/2016" but no time parameters.
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
MyTime = DateTime.Parse("12/30/2016 3:10:00 PM");
}
}
#region Properties
[NinjaScriptProperty]
[Display(Name="MyTime", Order=1, GroupName="Parameters")]
public DateTime MyTime
{ get; set; }
#endregion
Any help would be much appreciated.

Comment