Runtime errors can occur if you incorrectly define the maximum number of bars back (Max bars back) an indicator references instead of using the auto-detect feature. The reason for the runtime error is displayed in the Runtime error window. The most common cause of a runtime error is when an indicator needs to reference more bars of data to perform its calculation than specified by the user-defined Max bars back.
A runtime error automatically disables the indicator by turning its status to Off. To correct a runtime error, you must modify the Max bars back the indicator will reference to either Auto-Detect or, if you still want to specify the Max bars back a study references, enter a value that allows the indicator to complete its calculation. Once this is corrected, you must also enable the disabled indicator. For more information, see Disabling an Indicator.