I have CalculateOnBarClose = false in the Initialize() method AND I have Data:Calculate on bar close = False on the chart. It's not clear to me why 2 COBC's are required. Can you explain this?
Here's the issue: If I have Data:Calculate on bar close = True on the chart then the Indicator works as expected but it's not a real-time update, it's "on bar".
But, if I set Data:Calculate on bar close = False on the chart the indicator fails to update regardless of whether I set Historical = True or False.
One final twist is that if I set Data:Calculate on bar close = False AND Historical = False AND constantly reload the Indicator on the chart (using F5) THEN the Indicator calculates the correct values in "real-time". Why would this be the case? How can I get the Indicator to update in real-time without constantly reloading the code?
Comment