I have an indicator that is having problems periodically. The error message I am receiving in the log is as follows;
Error on plotting values to chart data box for indicator 'Combo'. Please check the 'OnBarUpdate' method: Object reference not set to an instance of an object.
I'm not entirely sure what could be causing the problem but I have tried various methods as suggested online with regards to checking current bars as well as try/catch but when the error occurs the plots dissapear from the chart until I reload the indicator where it may or may not dissapear again.
Appreciate the help.
Comment