Mov Avg - Linearly Weighted

Top 

Mov Avg - Linearly Weighted

Variable List Abbreviation: LinWgtMvAvg

 

Variable Mode(s): Standard, Stock, Futures1, and Futures2

[ Note: uses selected close variable in Stock, Futures1, and Futures2 modes ]

 

Parameter(s): LinWgtMvAvg time periods

 

Description:

Smoothes values over n (time periods) time periods, with later values having a linearly decreasing affect on the overall average

 

Calculation:

sum over n time period of ( value * weight )

                sum of weights

 

where n=LinWgtMvAvg time periods

 

Example Calculation:

Using values of 13, 17, 12, 14, 19 and a LinWgtMvAvg time periods of 5:

 

LinWgtMvAvg = (13*1+17*2+12*3+14*4+19*5) / (1+2+3+4+5)