Correcting Runtime Errors due to Maximum Number of Bars Study

Runtime errors can occur if you incorrectly define the maximum number of bars a study references when using the User defined option instead of the Auto-detect option. The reason for the runtime error is displayed in the Runtime error window. The most common cause of a runtime error is when a study 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 study by turning its status to Off. To correct a runtime error, you must modify the Maximum number of bars study will reference setting to Auto-detect. If you still want to specify the maximum number of bars the study will reference, enter a value that allows the study to complete its calculation. Once this is corrected, you must also enable the disabled study. For more information, see Disabling a Study.

  1. Activate a Chart Analysis window containing a study.
  2. Access the Studies > Edits menu sequence. The Customize Studies & Strategies dialog is displayed.
  3. Click the Studies tab.
  4. Select the desired study you want to modify.
  5. Click Customize.
  6. Click the General tab.
  7. Under Maximum number of bars study will reference, select an option: Auto-detect or User defined.
  8. If User defined is selected, enter the number of bars in the User defined box.
  9. Click OK.
  10. Click Close when finished.