Suppose CalculateOnBarClose=false. If my OnBarUpdate() method includes code that takes longer to execute than the interval between ticks, what happens? Does a new OnBarUpdate() event fire off each time a tick comes in, causing a delayed pile-up of calls to this method (or worse, multiple concurrent executions of the same OnBarUpdate() method)? Or does each call of OnBarUpdate() block further tick events from calling it until it completes?
The desired behavior for me would be for OnBarUpdate() to block further calls to it until it's done, to ensure that it can execute completely from beginning to end. If ticks must be skipped to facilitate OnBarUpdate() finishing execution, that's fine. I don't want a delay to accumulate because the code is slow.
-Alex


Comment