Skip to main content

Volume Weighted MA ( VWMA ) for Amibroker (AFL)

VictorH about 8 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    amibroker, moving average

Volume Weighted MA ( VWMA )
OR
Volume Adjusted MA ( VAMA )

Screenshots

Indicator / Formula

Copy & Paste Friendly
SetChartBkGradientFill( 54, 54 );

function VWMA( price, pds )
{
    aa = Sum( ( Volume * price ), pds );
    bb = Sum( Volume, pds );
    Cc = aa / Nz( bb );
    return Cc;
}

pr = ( 2 * Close + High + Low ) / 4;

Plot( Close, "Close", 1, 64 );
Plot( VWMA( pr, 8 ), "Close", 29, 5 );

0 comments

Leave Comment

Please login here to leave a comment.