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 ....
Buy Sell Signal 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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | _SECTION_BEGIN ( "signal" ); LongPer = Param ( "Long Period" , 13, 30, 100, 5); ShortPer = Param ( "Short Period" , 34, 30, 100, 5); LongPer1 = Param ( "Long Period1" , 3, 30, 100, 5); ShortPer1 = Param ( "Short Period1" , 5, 30, 100, 5); LongMA = EMA ( C , LongPer); ShortMA = EMA ( C , ShortPer); LongMA1 = EMA ( C , LongPer1); ShortMA1 = EMA ( C , ShortPer1); LastHigh = HHV ( H , LongPer); GraphXSpace = 10; Plot (LongMA, " EMA(C, " + WriteVal (LongPer, 1) + ")" , colorBrightGreen , styleLine ); Plot (ShortMA, " EMA(C, " + WriteVal (ShortPer, 1) + ")" , colorRed , styleLine ); Plot (LongMA1, " EMA(C, " + WriteVal (LongPer1, 1) + ")" , colorBlue , styleLine ); Plot (ShortMA1, " EMA(C, " + WriteVal (ShortPer1, 1) + ")" , colorBrown , styleLine ); Buy = Cross (LongMA, ShortMA); Short = Cross (ShortMA, LongMA); Cover = Cross (LongMA1, ShortMA1); Sell = Cross (ShortMA1, LongMA1); PlotShapes ( shapeUpArrow * Buy , colorBrightGreen , 0, L , - 10); PlotShapes ( shapeDownArrow * Short , colorRed , 0, H , - 10); PlotShapes ( shapeUpArrow * Cover , colorBlue , 0, L , - 10); PlotShapes ( shapeDownArrow * Sell , colorBrown , 0, H , - 10); Filter = Buy OR Sell ; Filter = Short OR Cover ; Sell = ExRem ( Sell , Buy ); Buy = ExRem ( Buy , Sell ); Short = ExRem ( Short , Cover ); Cover = ExRem ( Cover , Short ); AddColumn ( Buy , "Buy" ); AddColumn ( Sell , "sell" ); AddColumn ( Short , "short" ); AddColumn ( Cover , "cover" ); AddColumn ( BuyPrice , "BuyPrice" ); AddColumn ( SellPrice , "SellPrice" ); AddColumn ( ShortPrice , "shortPrice" ); AddColumn ( CoverPrice , "coverPrice" ); _SECTION_END (); |