Metastock Indicator Formula |
Volume weighted moving average |
The mathematical narration of volume weighted moving average is as below i.e.
v1 * c1 + v2 * c2 + ... + vN * cN
VWMA = ---------------------------------
v1 +
v2 + ... + vN
you will find on focusing above math narration there is one common logic that is you need to sum of previous values with number for periods. If this is true then you have to see sum function in meta-stock for finding curve of Volume weighted moving average.
The rules you apply same as you apply for simple and any other moving average. i.e for crossovers between price and medium/long period.
|
Formula: |
{VWMA}
x:=Input("VWMA",1,1000,3);
x1:=sum(v,x);
x2:=sum((c*v),x)/x1;
x2
|
|
|