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