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
_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();