else if (State == State.Configure)
{
Print("State.Configure1");
}
else if (State == State.DataLoaded)
{
Print("State.DataLoaded1");
VWMA1 = VWMA(Close, Convert.ToInt32(VWMA_Period));
VWMA1.Plots[0].Brush = Brushes.DodgerBlue;
AddChartIndicator(VWMA1);
SetProfitTarget(@"Long", CalculationMode.Ticks, TP);
SetTrailStop(@"Long", CalculationMode.Ticks, TrailingSL, false);
SetProfitTarget(@"Short", CalculationMode.Ticks, TP);
SetTrailStop(@"Short", CalculationMode.Ticks, TrailingSL, false);
Print("State.DataLoaded2");
}
Thank you

Comment