I need to save trades of each optimization iteration. I do that in OnStateChange() when State == State.Terminated. This works well. Unfortunately the data is saved not only when optimization is running but also when I select different result in SA. Is there any way how to export trades to text file only at the time when optimization runs?
Thanks
Comment