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 ....
EMA Channel offset for Amibroker (AFL)
Rating:
3 / 5 (Votes 2)
Tags:
channel, trading system, amibroker
EMA OFFSET AFL
Nice to use this afl Eod
Similar Indicators / Formulas
Kase Peak Osc. V2 batu
Submitted
by batu1453 over 10 years ago
Pride System Modified
Submitted
by niladri over 12 years ago
Kase CD V2batu
Submitted
by batu1453 over 10 years ago
Ichimoku
Submitted
by prashantrdx over 10 years ago
Adaptive Price Zone (APZ)
Submitted
by AndrewThomas almost 14 years ago
EMA System Ribbon
Submitted
by yo123 almost 14 years ago
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("EMA Channel Offset Trading System "); 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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); P = Optimize ( "P AVG", Param("P Avg",34,1,200,1), 1,50,1); P1 = Optimize("FILTER", Param("Filter",15,1,25,1),5,20,1); P2= Param("DELAY",21,1,200,1); A = EMA(( (H+L)/2)+P1,P ); B = EMA( ( (H+L)/2)-P1,P ); x= Ref(A,-P2); y= Ref(B,-P2); /* Buy or Sell Condition */ Buy= Cover = Cross(Close,x); Sell= Short = Cross(y,Close); Buy = ExRem(Buy,Sell); Sell = ExRem(Sell,Buy); Filter = Buy OR Sell; /* Exploration Parameters */ AddTextColumn( FullName(), "Company Name" ); AddColumn( Buy, "Buy", 1 ); AddColumn( Sell, "Sell", 1 ); AddColumn( C, "Close", 1.3 ); AddColumn( H, "High", 1.3 ); Plot ( x ,"",colorBlue, styleLine); Plot ( y,"",colorBlue, styleLine); Title = EncodeColor(colorWhite)+ "EMA OFFSET Trading System" + " - " + Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) + " - " + Date() +" - "+"\n" +EncodeColor(colorRed) +"Op-"+O+" "+"Hi-"+H+" "+"Lo-"+L+" "+ "Cl-"+C+" "+ "Vol= "+ WriteVal(V)+"\n"+ EncodeColor(colorLime)+ WriteIf (Buy , " GO LONG / Reverse Signal at "+C+" ","")+ WriteIf (Sell , " EXIT LONG / Reverse Signal at "+C+" ","")+"\n"+EncodeColor(colorWhite)+ WriteIf(Sell , "Total Profit/Loss for the Last Trade Rs."+(C-BuyPrice)+"","")+ WriteIf(Buy , "Total Profit/Loss for the Last trade Rs."+(SellPrice-C)+"",""); PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40); PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50); PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45); PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40); PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50); PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45); dist = 1.5*ATR(20); dist1 = 3*ATR(20); for( i = 0; i < BarCount; i++ ) { if( Buy[i] ) { PlotText( "\nBuy:" + C[ i ], i, L[ i ]-dist[i], colorGreen, colorYellow ); } if( Sell[i] ) { PlotText( "Sell:" + C[ i ], i, H[ i ]+dist1[i], colorRed, colorYellow ); } } _SECTION_END();
2 comments
Leave Comment
Please login here to leave a comment.
Back
thanks for sharing, but it is useful for those who prefers long postion
Thanks, Excellent Indicator.