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 ....
EMA13-MA20 Cross for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | _SECTION_BEGIN ( "" ); 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 ( "MA5-MA20 Crossover" ); Buy = Cross ( EMA ( Close , 13 ), MA ( Close , 20 ) ); Sell = Cross ( MA ( Close , 20 ), EMA ( Close , 13 ) ); PlotShapes ( IIf ( Sell ==1, shapeDownArrow , shapeNone ), colorRed , 0, High , Offset=-15); PlotShapes ( IIf ( Buy ==1, shapeUpArrow , shapeNone ), colorGreen , 0, Low , Offset=-15); _SECTION_END (); Plot ( EMA ( Close ,13 ), "EMA13" , colorRed , styleLine ); Plot ( MA ( Close ,20), "MA20" , colorBlue , styleLine ); |