Observed with NT 7.0.0.22
When adding the indicator to the FDAX chart, the plots are correctly renamed and the plotname is displayed on the chart.
Now I toggle to another instrument -> original plotname appears (expected)
Now I toggle back to FDAX -> original plotname is maintained (not expected OnStartUp() is ignored)
Problem
OnStartUp() is not called, when toggling from one instrument to another. Or how can you explain that an indicator applied to FDAX changes its value when toggling to ES and the back to FDAX?
This is the code used:
protected override void OnStartUp()
{
if (Instrument.MasterInstrument.Name == "FDAX")
Plots[0].Name = "NewName";
}


Comment