When running with IsInstantiatedOnEachOptimizationIteration set to false i have some indicators that is giving me some wierd issues i am trying to troubleshoot.
I add all indicators to my strategies like this under data loaded. but when the IsInstantiatedOnEachOptimizationIteration set to false this line some times comes with errors.
I added a print before and after to nail down that it is this line.
Print(" Before TMA");
FiltersTMAInd = TMA(Close, FiltersTMAPeriod);
Print(" After TMA");
How do i actually reset the indicators and everything under it, Plots and variables.
Or should i change the indicators to reset all values under DataLoaded also ?
From reading the man pages i hot to clear differant types of variables but how do i clear a plot that is defined under state setDefaults ?
AddPlot(new Stroke(Brushes.Gold, 1), PlotStyle.Line, "Plotname");
Is it correctley understood a by instantiating an iSeries like this it is being instantiated as a new clear iSeries and does not need to be cleared ?
FiltersGlobal = new Series<bool>(this);

Comment