I have a custom indicator that reads and parses data from a text file and it works great.
The problem is that when running and optimization it reads and parses the information again and again on each iteration. is there a way to just let it reuse the same initialised indicator for each itteration?
I am aware of and i am using:
IsInstantiatedOnEachOptimizationIteration = false;
then in state.DataLoaded i have:
else if (State == State.DataLoaded)
{
if(myIndicator1 == null)
myIndicator1 = myIndicator(TextFile);
}
I thought the above will cause the indicator to be recycled and not reinitialised.. however it didnt work.
Thanks
Comment