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 ....
Stochastic Macd for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | _SECTION_BEGIN ( "Stochastic %D" ); periods = Param ( "Periods" , 15, 1, 200, 1 ); Ksmooth = Param ( "%K avg" , 3, 1, 200, 1 ); Dsmooth = Param ( "%D avg" , 3, 1, 200, 1 ); Plot ( StochD ( periods , Ksmooth, DSmooth ), _DEFAULT_NAME (), ParamColor ( "Color" , colorCycle ), ParamStyle ( "Style" ) ); _SECTION_END (); _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 ); 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" , ParamColor ( "Histogram color" , colorDefault ), styleNoTitle | ParamStyle ( "Histogram style" , styleHistogram | styleNoLabel , maskHistogram ) ); _SECTION_END (); |