The WMA applies more weight to recent data and less weight to older elements.

 

Syntax:

WMA( series, bars )

 

Parameter:

Description:

series

Name numeric series

bars

Count of the number of series elements bars over which to find the WMA value

 

Returns:

The weighted moving average.

 

Example:

'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Update Indicators Script
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Bar_ Count = 21 - Parameter - Lookback enabled
'  Calculates Weigthed Moving Avg over price period length.
WMA_Close = WMA( instrument.close, Bar_Count)      
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

OR

 

WMA_Close_21-Bar_Dialog

Chart Display:

WMA_Close_21-Bar

 

Links:

 

 

See Also:

 

 


 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software