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 ....
14_206_EMA_Crossover for Amibroker (AFL)
Copy & Paste Friendly
Back
_SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{Name}} – {{Interval}} {{Date}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); _SECTION_END(); _SECTION_BEGIN("EMA"); Range1=Optimize("range1",14,1,20,1); Range2=Optimize("range2",206,1,125,1); Buy = Cross((EMA(Close,range1)),(EMA(Close,range2))); Sell = Cross(EMA(Close,range2),(EMA(Close,range1))); Short = Sell; Cover = Buy; // plot expanded average Plot(EMA( Close,range1), "70Min-EMA", colorRed ); Plot(EMA( Close,range2), "1030Min-EMA", colorGreen ); // plot arrows shape = Buy * shapeUpArrow + Sell * shapeDownArrow; PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) ); _SECTION_END();