5min Open Range Breakout Not Showing Results

Hi,

I have seemingly correct code, but I am not getting any results, any ideas?

Strategy:

Identify first 5min bar of the US Cash session, if bar closes up, go long, stop loss = low of the 1st bar, profit target = 1st bar (Close - Low) X 10 OR close at the session close.

vice versa for short

here's the code:

_SECTION_BEGIN( "ORB breakout v0.5" );

daysback = 1;
SetBarsRequired((daysback+1)*inDaily/Max(1,Interval()));

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() ); 

GfxTextOut("ORB Breakout v0.1", 10, 20);
bi 			= BarIndex();
tn 			= TimeNum();
dn 			= DateNum();
newday 		= dn != Ref( dn, -1 );
BarsOfDay 	= BarsSince( newday ) + 1;
intra_cond 	= BarsOfDay % 1 == newday;

// define start/end hours in TimeNum format
StartTime 	= ParamTime("Start Time", "9:30:00");
PositionExitTime = ParamTime("Position Exit Time", "15:55:00");
Endtime 	= (StartTime+((Interval()/60)*100))-100;		//ParamTime("End Time", "9:34:59");

START 		= tn >= StartTime;
END   		= tn <= Endtime;
ZONE  		= START AND END;
ST    		= tn >= Endtime;
NewTime 	= ZONE != Ref( ZONE, -1 ); 
highestoftheday = HighestSince( NewTime, H, 1 );
Lowestoftheday  = LowestSince( NewTime, L, 1 );
myH   		= ValueWhen( ZONE, highestoftheday, 1 );
myL    		= ValueWhen( ZONE, lowestoftheday, 1 );
myC    		= ValueWhen( ZONE, Close, 1 );

myHigharry = myLowarry = myClosearry = Null;
myHigh = myLow = myClose = 0;

for ( i = 1; i < BarCount; i++ )
{
	if( Endtime[ i ] < tn[ i ] )
	{
		myHigh 	= myH[ i ];
		myLow 	= myL[ i ];
		myClose	= myC[ i ];
	}else
		{
			if( 000000 <= tn[ i ] )
			{
				myHigh = 0;
				myLow = 0;
				myClose = 0;
			}
		}
		
	if( myHigh > 0 )
	{
		myHigharry[ i ] = myHigh;
	}
	if( myLow > 0 )
	{
		myLowarry[ i ] 	= myLow;
	}
	if( myClose > 0 )
	{
		myClosearry[ i ] 	= myClose;
	}			
}

function BreakoutLevel(initBuy) 
{
	global Buy, Sell, BuyPrice, SellPrice;
	local targetprice, stoplossprice, breakoutbar, priceatbuy;
	global targetprice_arry, stoplossprice_arry;
	//
	Buy = Sell = 0;
	targetprice = stoplossprice = breakoutbar = priceatbuy = 0;
	targetprice_arry = stoplossprice_arry = Null;

	for ( i = 1; i < BarCount; i++ ) 
	{
		if( StartTime[ i ] == tn[ i ] )
		{
			priceatbuy = breakoutbar = stoplossprice = 0;
		}
		if ( initBuy[ i ] == True AND priceatbuy == 0 ) 
		{	
			Buy[ i ] 		= True;
			BuyPrice[ i ] 	= Open[ i ];		
			priceatbuy 		= BuyPrice[ i ];
			breakoutbar 	= i;			
			targetprice 	= priceatbuy + (abs(Close[ i-1 ] - Low[ i-1 ])*10);	
			stoplossprice 	= Low[ i-1 ];		
		} else Buy[ i ] = 0;
			
		// Buy exit
		if( ( PositionExitTime < tn[ i ] OR (stoplossprice >= Low[ i ] ) OR targetprice <= High[ i ] ) AND priceatbuy > 0 AND breakoutbar < i ) {
			Sell[ i ] 		= 1; 
			SellPrice[ i ] 	= C[ i ];			
			priceatbuy = breakoutbar = stoplossprice = 0;
			targetprice = stoplossprice = 0;
		} else Sell[ i ] = 0;		
		
		if ( targetprice > 0 )
		{
			targetprice_arry[ i ] = targetprice;
		}
		if ( stoplossprice > 0 )
		{
			stoplossprice_arry[ i ] = stoplossprice;
		}		
	}	
}

SetTradeDelays(0, 0, 0, 0);
Buy = Sell = Short = Cover = False;
BuyPrice = SellPrice = ShortPrice = CoverPrice = Null;

initBuy = ((StartTime+((Interval()/60)*100))) == tn AND Ref(Open, -1) < Ref(Close, -1);

BreakoutLevel(initBuy);

_SECTION_END();

_SECTION_BEGIN( "Plot & Indicator & Explore & Portfolio" );

bi 	= BarIndex();
fvb = FirstVisibleValue( bi );
lvb = LastVisibleValue( bi );
dt	= DateTime();

if ( Status("action") == actionIndicator ) 
{
	Plot( stoplossprice_arry, "sl", colorRed, styleNoRescale|styleNoTitle );
	Plot( targetprice_arry, "tgt", colorGreen, styleNoRescale|styleNoTitle );
	
	Plot( myHigharry, "myH", colorGreen, styleThick );
	Plot( myLowarry, "myL", colorRed, styleThick );

	// area chart shows the zone we are reading our values from
	Plot( tn >= StartTime AND tn <= Endtime, "", 
		  ColorBlend( colorYellow, colorWhite, 0.9 ), 
		  styleArea | styleOwnScale, 0, 1, 0, -1);

	//eq 			= Equity(1, 0);			//evaluate stops in chart pane
			
	//Buy = ExRem(Buy, Sell);
	//Sell = ExRem(Sell, Buy);
	//Short = ExRem(Short, Cover);
	//Cover = ExRem(Cover, Short);			
			
	Buy_col 	= IIf( Buy == 1, colorBrightGreen, IIf( Buy == sigScaleIn, colorLime, colorRed ));
	Short_col 	= IIf( Short == 1, colorRed, IIf( Short == sigScaleIn, colorLime, colorBrightGreen ));

	Cover_col 	= IIf( Cover == 1, colorBrightGreen, IIf( Short == sigScaleOut, colorLime, colorRed ));
	Sell_col 	= IIf( Sell == 1, colorRed, IIf( Buy == sigScaleOut, colorLime, colorBrightGreen ));
		
    PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), Buy_col, 0, L, -15 );
    PlotShapes( IIf( Buy, shapeSmallCircle, shapeNone ), colorWhite, 0, BuyPrice, 0 );
    PlotShapes( IIf( Sell, shapeDownArrow, shapeNone ), Sell_col, 0, H, -15 );
    PlotShapes( IIf( Sell, shapeSmallCircle, shapeNone ), colorwhite, 0, SellPrice, 0 );
    PlotShapes( IIf( Short, shapeDownArrow, shapeNone ), Short_col, 0, H, IIf( Short AND Sell, -30, -15 ) );
    PlotShapes( IIf( Short, shapeSmallCircle, shapeNone ), colorWhite, 0, ShortPrice, 0 );
    PlotShapes( IIf( Cover, shapeUpArrow, shapeNone ), Cover_col, 0, L, IIf( Cover AND Buy, -30, -15 ) );
    PlotShapes( IIf( Cover, shapeSmallCircle, shapeNone ), colorwhite, 0, CoverPrice, 0 );    
               


}

_SECTION_END();

if( Status("redrawaction") == 0 ) 
	_now = Now();

all good, sorted out.