I am writing an indicator that will plot buy/sell signals as up/down arrows based on a set of conditions.
I am having this weird problem where when running the indicator in real-time with CalculateOnBarClose as false, the signal did not appear on some bars when it should. After I press F5 to refresh the chart, the signal appears. I am using a 1-min chart.
Shouldn't the real-time run be more 'sensitive' since it is responding to incoming tick data, whereas the refreshed version is less sensitive (I presume the historical bars are processed once per bar?) That's why I am puzzled that the refreshed version has the signal showing up correctly while running it real-time the signal doesn't show.
Any ideas what could be causing this?
Comment