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 ....
simple amibroker formula for buy and sell for Amibroker (AFL)
Copy & Paste Friendly
Back
_SECTION_BEGIN("www.disciplined.trade"); //created by ashok (www.disciplined.trade) 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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); EMA5 = Ref(EMA(Close,5),-1); EMA20 = Ref(EMA(Close,20),-1); Buy = EMA5>EMA20 AND Cross(High,EMA5) AND Close>Ref(Close,-1); Sell = EMA20>EMA5 AND Cross(Low,EMA5) AND Close<Ref(Close,-1); Filter = (Buy OR Sell) AND MA(V,10)>100000; AddColumn(Close,"close"); AddColumn(Volume,"volume"); AddColumn(Buy,"buy"); AddColumn(Sell,"sell"); _SECTION_END(); The idea is to find the stocks that have low crossed below the 5 day EMA and stocks that have crossed the 5 day EMA price