[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Understanding Volume-Weighted Moving Average?



PureBytes Links

Trading Reference Links

Please try the following:
 

function VWMA( array, period )

{

return Sum( array * V, period ) / Sum( V, period );

}

P = ParamField("Price field",-1);

Periods = Param("Periods", 15, 2, 300, 1, 10 );

Plot( VWMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

 
NOTE: This TJ's Code.

Sent: Friday, December 12, 2008 3:29 AM
Subject: [amibroker] Understanding Volume-Weighted Moving Average?

Hi guys,

I am trying to understand Volume Weighted Moving Average. The AFL seems
to be as follows (a 10-day example):

VWMA = Sum((Volume*Close),10) / Sum (Volume,10);

This looks like a regular MA. Does it make sense to use an EMA version
of this? What would the AFL look like for that?

Thanks as always for any help!

Andrew (Fog)

__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___