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

Re: [amibroker] Indicator Question



PureBytes Links

Trading Reference Links

//Volume-Weighted MACD Histogram
lng=26;
 shrt=12;
 lEMA = EMA((Sum(C,lng)*V/Sum(V,lng)),lng);
 sEMA = EMA((Sum(C,shrt)*V/Sum(V,shrt)),shrt);
 vMACD = lEMA-sEMA;
 sig = EMA(vMACD,9);
 Plot(vMACD,"vMACD",1,1+4);
 Plot(sig,"Signal",1,8+4);
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
/From: "Anthony Faragasso" <ajf1111@xxx>
Date: Sun Jan 30, 2005  7:51 pm
Subject: Re: [amibroker] Changing MACD histogram colors*/
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1,
r2), ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor
("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", IIf(ml-sl > 0,colorBrightGreen,colorRed ), styleNoTitle | ParamStyle("Histogram style",
styleHistogram | styleNoLabel, maskHistogram ));


George Poulos <globalgreek@xxxxxxxxx> wrote:
I have searched but have not found any code to plot the MACD histogram
without the macd or signal lines, also would like to change the
thickness and values.
TIA




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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




Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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





Yahoo! Groups Links