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 ....
ema2 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 21 22 | _SECTION_BEGIN ( "EMA CROSSOVER CHART" ); LongPer = Param ( "Long Period" , 5, 30, 100, 5); ShortPer = Param ( "Short Period" , 10, 30, 100, 5); LongMA = EMA ( C , LongPer); ShortMA = EMA ( C , ShortPer); LastHigh = HHV ( H , LongPer); GraphXSpace = 10; Plot (LongMA, " EMA(C, " + WriteVal (LongPer, 1) + ")" , colorDarkBlue , styleLine ); Plot (ShortMA, " EMA(C, " + WriteVal (ShortPer, 1) + ")" , colorRed , styleLine ); Buy = Cross (LongMA, ShortMA); Sell = Cross (ShortMA, LongMA); PlotShapes ( shapeUpArrow * Buy , colorBrightGreen , 0, L , - 10); PlotShapes ( shapeDownArrow * Sell , colorRed , 0, H , - 10); AlertIf ( Buy , "SOUND C:\\Windows\\Media\\buglehorn.wav" , "Buy Triggered!" , 1, 8); AlertIf ( Sell , "SOUND C:\\Windows\\Media\\buglehorn.wav" , "Sell Triggered!" , 2, 8); Filter = Buy OR Sell ; Sell = ExRem ( Sell , Buy ); Buy = ExRem ( Buy , Sell ); AddColumn ( Buy , "Buy" ); AddColumn ( Sell , "sell" ); AddColumn ( BuyPrice , "BuyPrice" ); AddColumn ( SellPrice , "SellPrice" ); _SECTION_END (); |