Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Volume Weighted MACD for Amibroker (AFL)

Rating:
4 / 5 (Votes 9)
Tags:
oscillator, amibroker

While going through divergence indicators here in the forum I across a Volume MACD.

I just tested it with mine and it did not match mine. I checked the formula which was much different than Volume Weighted Moving Average.

The calculation for MACD is EMA of 12 days periods of Closing Price MINUS the EMA of 26 days periods of the Closing Price.

A volume weighted MACD is much effective as it includes the volume component along with price.

Hence the VWMACD works out to be ::

The EMA of Volume * 12 days periods of Closing Price/EMA of 12 days volume MINUS
The EMA of Volume * 26 days periods of Closing Price/EMA of 26 days volume

I have provided the corrected version of the Volume Weighted Moving Average as described in the Book Bollinger on Bollinger Bands.

The buy sell signals remain the same as we use in MACD.

NB : Sometimes Volumes precede the price actions, sometimes both occur simultaneously and some times Prices precede the volume actions.

I am working on the Divergence of this VWMACD which I shall be posting as soon as I complete and test it.

Screenshots

Similar Indicators / Formulas

Febo RSI ..real indicator
Submitted by abhinavsingh over 12 years ago
Trading Volume Statistic
Submitted by tuanstock1 almost 10 years ago
Ergodic Oscillator
Submitted by dljtrader over 13 years ago
3 Days Track
Submitted by janet0211 almost 14 years ago
Chande Momentum Oscillator
Submitted by klimpek over 13 years ago

Indicator / Formula

Copy & Paste Friendly
 SetChartBkColor( ParamColor("Chart Color", colorBlack));
_SECTION_BEGIN("BACKGROUD LTRS");
SetChartOptions(0,chartShowArrows|chartShowDates);
GfxSetOverlayMode(1);
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ParamColor("Text Color", ColorHSB( 42, 42, 42 ) ));
GfxSetBkMode(0); // transparent
GfxSelectFont("Tahoma", Status("pxheight")/12);
GfxTextOut( "PRASAD ANALYTICS ©", Status("pxwidth")/2, Status("pxheight")/14);
GfxSelectFont("Tahoma", Status("pxheight")/9 );
GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/4.1 );
GfxSelectFont("Arial Narrow", Status("pxheight")/28 );
GfxTextOut( "prasad9rao@gmail.com", Status("pxwidth")/2, Status("pxheight")/1.5);
GfxSelectFont("arial narrow", Status("pxheight")/27 );
GfxTextOut( "Dedicated to MY FATHER : BALKRISHNA RAO", Status("pxwidth")/2, Status("pxheight")/1.15);
_SECTION_END();
k = (GetPerformanceCounter()/100)%256; 
printf("GetPerformance Counter %g",k);
GfxSelectFont("Arial Narrow", 10,700 ); 
GfxSetBkMode(1); 
GfxSetTextColor(colorYellow); 
//GfxTextOut("Dedicated to the loving memory of MY FATHER",100+k ,26); 
RequestTimedRefresh(1); 
_SECTION_END();
PeriodS = Param("Short period", 12, 1, 500 ); 
PeriodL = Param("Long period", 26, 2, 501 ); 
PeriodSig = Param("Smoothing period", 9, 1, 200 ); 
LongMA = EMA( V * C, PeriodL ) / EMA( V, PeriodL ); 
ShortMA = EMA( V * C, PeriodS ) / EMA( V, PeriodS ); 
VMACD = ShortMA - LongMA; 
SignalLine = EMA( VMACD, PeriodSig ); 
Plot( VMACD, "Vol-weighted MACD", colorDarkRed ); 
Plot( SignalLine, "Vol-weighted Signal", colorWhite); 
Plot( VMACD-SignalLine, "VMACD Histogram", colorGold, styleHistogram ); 
GfxSetTextAlign( TA_left = 0);
GfxSelectFont("Tahoma", 11, 700 ); 
GfxSetTextColor(ColorRGB(209,191,255)); 
GfxTextOut("PRASAD ANALYTICS - VWMACD",07, 0); 
GfxSetTextAlign( TA_LEFT = 0 );
GfxSelectFont("Tahoma", 11, 700 ); 
GfxSetTextColor(ColorRGB(255,180,61)); 
GfxTextOut(Name()+ "   " + Date(),07,30); 
GfxSetTextColor(ColorRGB(109,101,255)); 
GfxTextOut("VWMACD["+PeriodS+" ]"+"["+PeriodL+"]" + "["+PeriodSig+"]",07, 14); 
Title = " "; 

5 comments

1. ajeet

Much better than normal MACD :)

2. Kabir

Good see some interesting afl has been posted

Hope to see new type afl and using with different technique should be post more frequently…..

3. swaroop

Hai prasad …
excellent
vishnu swaroop goud
Andhrapradesh—-7396922795

4. asd

please post the holy grail the version in the picture above thank uuuuuuuuuuuu

5. shariful

great bro ..carry on please

Leave Comment

Please login here to leave a comment.

Back