Can I get a bit more information on why this message pops up? Why does having static fields impact the parallel optimization?
Rename
Parallel threads operate asynchronously with each other with their own independent variables. However, they share static variables. If the values of all your static variables are exactly the same (Are they?) from one thread instance to the next, then there's not a problem. But if one thread instance messes up the variables of the other, then you'll have garbage for your optimization run.
Have you read (and understood) the issues about variable scoping and visibility in C# and WL? https://www.wealth-lab.com/blog/anatomy-of-a-wl7-strategy
Have you read (and understood) the issues about variable scoping and visibility in C# and WL? https://www.wealth-lab.com/blog/anatomy-of-a-wl7-strategy
Your Response
Post
Edit Post
Login is required