Skip to main content

Smart Way for Amibroker (AFL)

kunaljs99 over 14 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 4)
  • Tags:
    trading system, amibroker

Simple way of trading just buy above green line and yellow line is medium term indicator above that it will blast one way and exit on red price

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("10 Day High Low System");
pds = Optimize("pds" ,10,2,25, 1); 
 
 CB = LLV(C,pds); 
 CS = HHV(C,pds); 
 mav = TEMA(C,50); 

 Plot(Ref(CB, -1),"Long setup",colorBrightGreen); 
 Plot(Ref(CS, -1),"Short setup",colorRed) ; 
 Plot(Ref(mav, -1),"MA", colorGold, styleThick) ; 
 
 Buy= C < Ref(CB,-1); 
 Buy = Ref(Buy,-1); 
 BuyPrice = O; 
 
 Sell = C > Ref(CS,-1); 
 Sell = Ref(Sell,-1) ; 
 SellPrice = O; 
 
 Buy = ExRem(Buy,Sell) ; 
 Sell = ExRem(Sell,Buy) ; 
 
 SetChartOptions( 0, chartShowDates) ; 
 GraphXSpace = 5; 
 Plot(C,"C",1, 64); 
 
 PlotShapes(IIf( Buy,shapeSmallUpTriangle, 0),colorWhite, layer = 0,
yposition = BuyPrice, offset = 0 ); 
 PlotShapes(IIf( Sell,shapeDownArrow,0),colorYellow, layer = 0,
yposition = SellPrice, offset = 0 ); 
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.