I know OnBarUpdate() function is only called when bar close. But it could be a little bit too late if a bar takes too long to complete.
How can I calculate the new indicator value according to current change of market price, such that some decision can be made prior to the completion of the new bar.
I have some function needs to be done on a per-bar basis. It is Ok to be done when the bar close. How to separate those per-bar-basis function with those responding to the instant market change?
Many thanks!
Best Regards
David
Comment