|
Default Parameters Used/Inputs
|
 |
- Data line- Close line, High line, Open line, Low line or others
- Bars – number of bars for which WMA has to be calculated
|
|
|
|
Returns/Output
|
 |
|
WMA graph showing emphasis of recent changes
|
|
|
|
Formula
|
 |
|
WMA = Price(0)*n + Price(-1)*(n-1) + Price(-2)*(n-2) + ……….Price(1)*(n-3) + Price[-(n-1)]*1
/ n
Here Price(0) indicates value of current period (day or month or other data period). Similarly subscripts (-1), (-2)…etc indicate the previous xth position from current bar where ‘x’ is denoted in the brackets
|
|