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 ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
MACD Histogram for Amibroker (AFL)
Rating:
5 / 5 (Votes 1)
Tags:
oscillator, amibroker
This is MACD Histogram, just like Chart Nexus style.
Screenshots
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("MACD"); r1 = Param( "Fast avg", 12, 2, 200, 1 ); r2 = Param( "Slow avg", 26, 2, 200, 1 ); r3 = Param( "Signal avg", 9, 2, 200, 1 ); ml = MACD(r1, r2); sl = Signal(r1,r2,r3); Hist = ml-sl; MACUP = Hist > Ref(Hist,-1); MACDN = Hist < Ref(Hist,-1); BarColor = IIf(MACUP,ColorRGB(134,195,119),IIf(MACDN,ColorRGB(233,157,138),colorBlue)); Plot( Hist, "MACD Histogram", BarColor , styleHistogram|styleThick|styleOwnScale , 0, Null, 0, -10 , -50 ); if (ParamToggle("Tampilkan Garis MACD & Signal","Tidak|Ya",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(0, "0", colorBlueGrey ); _SECTION_END();
2 comments
Leave Comment
Please login here to leave a comment.
Back
error