_SECTION_BEGIN( "Price Chart" );
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", colorBrightGreen ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Previous Days High & Low");
SetPositionSize(100,spsPercentOfEquity);
//SetPositionSize(80,spsPercentOfEquity);
function CDL( array )
{
doy = DayOfYear();
Lastdoy = doy == LastValue( doy );
Dayline = array * Lastdoy;
return IIf( Dayline, Dayline, Null );
}
H1 = TimeFrameGetPrice( "H", inDaily, -1 );
L1 = TimeFrameGetPrice( "L", inDaily, -1 );
H2=TimeFrameGetPrice( "H", inDaily, -2 );
L2 = TimeFrameGetPrice( "L", inDaily, -2 );
Insidecond= H2 > H1 AND L2 < L1 ;
//Plot( cdl( y1 ), "", colorGreen, styleLine + styleDots + styleNoRescale );
Plot( cdl( H1 ), "", colorGreen, styleThick + styleDashed + styleNoRescale );
Plot( cdl( L1 ), "", colorRed, styleThick + styleDashed + styleNoRescale );
DN = DateNum();
DayStart = DN != Ref(DN, -1);
DaysEnd = DN != Ref(DN, 1);
bullrange=L +(0.55*(H-L));
bullbar=C>bullrange;
bearrange=H -(0.55*(H-L));
bearbar=C<bearrange;
//marketstarttime = 091500;
sigendtime = 144449;
sqofftime = 151459;
sqoff = TimeNum() >=sqofftime;
dn = DateNum();
newDay = dn != Ref( dn,-1);
N = Param("Limit Trades",1,1,10,1); //Per Symbol Trade Limit
Buycond= H > H1 AND DayStart AND bullbar AND TimeNum()<=sigendtime;
refh=ValueWhen (Buycond ,High);
Buy = Cross(High ,refh) ;
Buy = Buy AND Sum( Buy, BarsSince( newDay) +1 ) <= N; //Limit to one trade per day
BuyPrice=ValueWhen(Buy,refh);
Sell=daysend;
Buycont = Flip(Buy, Sell) ;
Sellcont = Flip(Sell, Buy) ;
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Buy = ExRem( Buy, NewDay );
Sell = ExRem( Sell, NewDay );
Buy = Buy AND buycont ;
Sell=Sell AND sellcont;
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone), colorYellow, 0, Low, -15, 0);
PlotShapes(Sell * shapestar, colorBrightGreen, 0, High, 12);
Filter = Buy OR Sell;
SetOption( "NoDefaultColumns", True );
AddTextColumn( Name(), "Symbol", 1.0, colorDefault, colorDefault, 80 );
AddColumn( DateTime(), "Date", formatDateTime, colorDefault, colorDefault, 70 );
AddColumn( C, "CMP", 1.2, colorDefault, colorDefault, 80 );
AddColumn(IIf(Buy,Buy,Sell),"signal",1,2);
AddColumn(IIf(Buy,BuyPrice,SellPrice),"entry/exit",1.2,colorDefault, colorDefault, 80) ;
//AddColumn(IIf(Short,Short,Cover),"signal",1,2);
//AddColumn(IIf(Short,BuyPrice,SellPrice),"entry/exit",1,2);
AddTextColumn( WriteIf( Buy, "Previous Day High Break", "Previous Day Low Break" ), "Trade", 1.0, colorDefault, colorDefault, 50 );
_SECTION_END();

Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?
Only users with License verified badge are allowed to post on this forum.
So before posting, make sure you verify your license as explained here.