I have discovered a range of odd indicator and plot behaviours when a secondary bar series is added by an indicator to a chart for which the primary series was loaded via:
Load data based on: Bars
Now I have an indicator that does just that. It loads a secondary data series and calculates plots and values based on the secondary series. To ensure accuracy in my indicator I would like to build in a start-up check in State.Configure where I verify how the data for the primary series was added and throw an exception if it was loaded based on Bars (rather than Days). How would I code this?
The sudo code is:
if(State == State.Configure){
Thanks

Comment