Is there a way in which NT7 B14 can signal to a strategy that the end of an optimisation sequence has been reached? For example; when the final bar of the final instrument in a instrument 'basket' is processed can an indication of the end of the process be issued back to the strategy code?
The reason I ask is that I have a 'static' variable in a strategy which I would like to reset on completion of the optimisation sequence. The consequence of not being able to reset this variable is; if I set up and begin a subsequent optimisation in quick succession then the static variable carries its value associated with the prior optimisation sequence into the new sequence.
I cannot reset this variable OnTermination() because it is necessary that its value persists across multiple instruments and threads. OnTermination() will reset it at the end of each parameter set.
Thanks
Riskybiz

Comment