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:

Click to Enlarge; Click to Reduce.

Weighted Moving Average Indicator

 

Links:

 

 

See Also:

 

 


Edit Time: 9/26/2020 1:31:16 PM


Topic ID#: 650

 

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