Dear cTrader Experts,
Could you please provide a code snippet illustrating how to ensure that specific code sections are executed in a specific order? I played around with Tasks (System.Threading.Tasks, Task.Factory.StartNew and SpecificTask.Wait), but can't figure this out in a way also working properly during (damned fast) optimization. I want to postpone execution of further code until the respective preceding step/task (really) is completed and this for each "Pass" in an optimization. Thx.