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

Re: [amibroker] Volume-weighted MACD



PureBytes Links

Trading Reference Links

/******* These variables can be changed ****/
fast = 14;
slow = 28;

pds=5; // EMA moving average variable
signl=9; // Signal line
/********************************************/

wfast = Sum( Close * Volume, fast )/Sum( Volume, fast );
wfast2=EMA(wfast,pds); // EMA of wfast

wslow = Sum( Close * Volume, slow )/Sum( Volume, slow );
wslow2=EMA(wslow,pds); // EMA of wslow

wmacd = wfast2 - wslow2;
wsignal = EMA( wmacd, signl );
Histo= wmacd - wsignal;

Plot(wmacd,"WMACD",4,1);
Plot(wsignal,"SIGNAL",6,1);
Plot(Histo,"HISTO",1,2);


Harold Harper wrote:

> Does anyone have an AFL formula for the Volume-weighted MACD?
>
> Thanks in advance!
>
> Harold Harper
> harold@xxxx
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT


>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.