Metastock Indicator Formula  | 
  
  
    Volume Weighted Moving Average | 
  
    
    | All concepts are same as we apply in simple moving avarage. The quality of this indicator is without using sum function has written by me.  | 
  
      
    
      
        | Formula: | 
        x:=Input("Volume weighted moving average",1,1000,3); 
x1:=Mod(Cum(1),1)=0; 
x2:=ValueWhen(1,x1,V); 
x3:=ValueWhen(1,x2<>0,x2); 
x4:=ValueWhen(1,x1,(C*V)); 
x5:=ValueWhen(1,x4<>0,x4); 
x6:=Cum(x1*x3); 
x7:= Cum(x1*x5); 
x8:=x6-ValueWhen(x+1,x1,x6); 
x9:=x7-ValueWhen(x+1,x1,x7); 
x10:=x9/x8; 
x10 
 | 
       
      | 
  
        
     |