So, a fairly common requirement I think, having googled it, but not sure I found my answer.
Have a lot of Logic in OnBarUpdate and indicator set to OnEachTick (or OnPriceChange), which is normally fine. Tried it on some rather lethargic instruments of late and the updates are not fast enough because the indicator interacts with mouse clicks, etc. from the user. At the moment, it needs an inbound tick to kick things off.
Now, I read about and tried 'Update()', which I hoped would do the trick, but it does not and it does clearly state in the docs it will be ignored if no bar updates are pending (shame). I could of course separate out all my logic into different functions, re-arrange OnBarUpdate, call things when a click is made, but, this is a large amount of work to overcome a very simple problem.
So, the question is, how to 'fake' a tick (ala MT4/5!), or force OnBarUpdate to run without waiting for a tick and regardless of if there are bars to update? (praying for a simple function call

Thanks.
Comment