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 ....
MA 20-60 for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | _SECTION_BEGIN ( "MA 20-60" ); Length1 = 20; Length2 = 60; MA1 = MA ( C ,Length1); MA2 = MA ( C ,Length2); Buy = Cross (MA1,MA2); Sell = Cross (MA2,MA1); e = Equity (); Maxe = LastValue ( Highest (e)); Plot ( Close , "price" , colorBlack , styleCandle ); Plot (MA1, "MA1" , colorGreen , styleLine ); Plot (MA2, "MA2" , colorBlue , styleLine ); shape = Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes (shape, IIf ( Buy , colorGreen , colorRed ),0, IIf ( Buy , Low , High )); _SECTION_END (); |