Volume Weighted MA ( VWMA ) for Amibroker

SetChartBkGradientFill( 54, 54 );
functionVWMA( price, pds ){aa = Sum( ( Volume* price ), pds );bb = Sum( Volume, pds );Cc = aa / Nz( bb );returnCc;}
pr = ( 2 * Close+ High+ Low) / 4;
Plot( Close, "Close", 1, 64 );Plot( VWMA( pr, 8 ), "Close", 29, 5 );
Leave a Reply
You must be logged in to post a comment.