Alert for Condition before certain Time

Hi i am trying to get alert , if day high crossed in first 60 minutes . It is showing alert only upto the time i specified . I am trying to achieve is , if price cross yesterday high " within " first hour and stays above yesterday high, need to have alert . If crossed after 1 hour no alert . Appreciate any help.


yDayH = 	TimeFrameGetPrice("H", inDaily, -1);	   	  		// yesterdays high

YHmaxtime   = 0101500  ; 

YHmaxtimecondition   = (TimeNum()<=YHmaxtime   ); 

 priceaboveYH = WriteIf (  Cross ( C, yDayH )  and YHmaxtimecondition    , " Price above YH , BULLISH.  " , " ") ;
 


Two things:

Since you want the signal to persist, you want to use a state instead of a pulse. Therefore you should change

Cross ( C, yDayH )

to

C > yDayH

Second, if you want to extend that signal until the end of the day, you could use the Flip() function.

thank you very much … … i am trying following way . What should i use for second array condition for Flip function ?

appreciate your time

yDayH = 	TimeFrameGetPrice("H", inDaily, -1);	   	  		// yesterdays high

YHmaxtime   = 0101500  ; 

YHmaxtimecondition   =  (C > yDayH )  and (TimeNum()<=YHmaxtime   ); 




yHyLflip= flip (YHmaxtimecondition   ,  ????/   );



 priceaboveYH = WriteIf (  yHyLflip    , " Price above YH , BULLISH.  " , " ") ;