EasyLanguage Reserved Words & Functions
All trading strategies, analysis techniques, and functions that refer to past data will need to wait a certain number of bars before they can start performing calculations. This waiting period can be adjusted for any analysis technique, and it is called Maximum number of bars a study will reference, or MaxBarsBack. For example, a 10-bar moving average would require a MaxBarsBack setting of 10 to begin calculating, which is 9 historical bars and the current bar.
MaxBarsBack
The MaxBarsBack setting may prevent values from being displayed when an indicator is first applied. When enough data sets have been acquired to satisfy the MaxBarsBack setting, values will appear.
When analysis techniques are applied to more than one data set at a time (for example, a multi-data chart), each data set must meet the MaxBarsBack requirement individually before values will be generated.