I am converting an NT 7 strategy to NT8 and I'm running into some issues that I suspect may be thread related. I have a series of module level variables defined in my strat's class. When I run the optimizer and set breakpoints in OnExecutionUpdate, I notice that it is called > 1 time WHILE I am still in the routine from the first call. This did not happen in NT7. I am not an expert on multithreading and thread safety. Is there something different I should be doing with module level variables in NT8? Am I right that module level variables are being stomped on? Are there guidelines, things I need to do differently as a result of the multithreadedness of NT8?
On a separate note. I've noticed that the optimizer just crawls when I am debugging using vstudio. Changing a parameter in the optimizer takes minutes!
Any help on this would be greatly appreciated.
Thanks ... Ed
Comment