In a custom indicator there is a TimeSpan parameter (pStartTime) to which I try to assign it'sdefault value in OnStateDefault this way:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = "Lateral of the session (Defined by relevant volume)";
Name = "LATS";
IsOverlay = true;
IsSuspendedWhileInactive = true;
IsAutoScale = false;
DrawOnPricePanel = true;
pVolRelevante = 7200;
pStartTime = TimeSpan.Parse("09:30:00");
AddPlot(Brushes.Transparent, "MaxLatS");
AddPlot(Brushes.Transparent, "MinLatS");
}
But when opening the Indicators window for the first time after starting NT8, its value is not set. It has the value "00:00:00" assigned.
When typing manually any value, then, when returning to the Indicators Windows, it shows the assigned value.
Any idea about this behaviour?
Thanks.
Comment