Mid Day Breakout Amibroker afl

Mid Day Breakout Amibroker aflMid Day Breakout Amibroker afl strategies for share market and calculates the center point of yesterdays move if the price breaks above the yesterday center point it takes a buy and break below center point it takes a short.

This breakout strategies for share market for just follow the rules and continue

SetChartOptions(0,chartShowArrows|chartShowDates); 
_N(Title = Date()+ EncodeColor(colorWhite)+"OPEN:"+ Open+" ,"+"HIGH:"+High+" ,"+"LOW:"+Low+" , "+"CLOSE:"+Close ); 
Plot(Close,"",colorDefault,styleCandle); 

   
DayO = TimeFrameGetPrice("O", inDaily,-1); 
DayH = TimeFrameGetPrice("H", inDaily, -1);   
DayL = TimeFrameGetPrice("L", inDaily, -1);   
DayC = TimeFrameGetPrice("C", inDaily, -1);   

Buy=C>(DayL+Dayh)/2 AND C>DayO;
Short=C<(DayL+Dayh)/2  AND C<Dayo;
Sell=   Short;
Cover=  Buy ;
Buy=ExRem(Buy,Sell);    Sell=ExRem(Sell,Buy); 
Short=ExRem(Short,Cover);  Cover=ExRem(Cover,Short);


PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,Low,-10);  
 PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorRed, 0,High,-10); 

Download Mid Day Breakout Amibroker afl

Add Comment