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 for Amibroker (AFL)
Copy & Paste Friendly
Back
_SECTION_BEGIN("Stochastic"); periods = Param( "Periods", 15, 1, 200, 1 ); Ksmooth = Param( "%K avg", 3, 1, 200, 1 ); Dsmooth = Param( "%D avg", 3, 1, 200, 1 ); myStochD=StochD( periods , Ksmooth, DSmooth ); myStochK=StochK( periods , Ksmooth); Overbought=80; Oversold=20; Buy = Cross(myStochK, myStochD ); Sell = Cross( myStochD, myStochK ); Plot( myStochD, "Stochastic %D"+_PARAM_VALUES(), ParamColor( "ColorD", colorRed ), ParamStyle("StyleD") ); Plot( myStochK, "Stochastic %K", ParamColor( "ColorK", colorGreen ), ParamStyle("StyleK") ); PlotShapes(IIf(Sell, shapeHollowDownArrow , shapeNone), colorRed); PlotShapes(IIf(Buy, shapeHollowUpArrow , shapeNone), colorBlue); Plot(Overbought,"Overbought Level",colorRed); Plot(Oversold,"Oversold Level",colorGreen); PlotOHLC( myStochK,myStochK,50,myStochK, "", colorRed, styleCloud | styleClipMinMax, 20, 80 ); PlotOHLC( myStochD,myStochD,50,myStochD, "", colorYellow, styleCloud | styleClipMinMax, 20, 80 ); PlotOHLC( Null,myStochD,myStochK,Null, "", colorBlue, styleCloud); _SECTION_END();