Volume weighted moving average for Amibroker (AFL)
jetb about 16 years ago Amibroker (AFL)
Volume weighted moving average
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("Volume weighted moving average");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 1000, 1, 10 );
Vwma = Sum((Volume*P),periods)/Sum (Volume,periods);
Plot(Vwma,_DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();0 comments
Leave Comment
Please login here to leave a comment.