Login Page - Create Account

Technical Studies Reference

Moving Average - Time Period

The Moving Average - Time Period study calculates a moving average using a Length specified by a fixed amount of time instead of a number of bars.

At each chart bar, the nearest matching bar with a Date-Time which is prior to the current bar Date-Time by the time period specified by the Time Period Type and Time Period Length Inputs, is where the calculation begins at.

The value of each element of a chart bars specified by the Input Data Input is summed except for zero values and divided by the number of nonzero values.

As you change the chart bar timeframe, you are going to get different results because the Input Data, like the last trade price of the bar, is going to be different for each chart bar. And the number of bars used in the calculation also varies based upon the timeframe of the chart bars.

If at a particular chart bar, based upon weekends and holidays and non-trading times, there are fewer bars than usual when looking back by the specified amount of time, then there are going to be fewer bar values used in the average calculation. Therefore, this can cause a sudden shift in the average value at that chart bar.


*Last modified Friday, 27th December, 2019.