it just takes the highest and lowest price between a set time and draws a line for lower and upper levels so that they are tradable for my automated systems.
the levels reset after 5 am so that it separates the zones
the start time is 9am the end time is 4:30Pm and the indicator will mark the high and low of that time period
This is the code below:
IF TIME CROSSES OVER 050000 THEN MAXPRICE=0 MINPRICE=CLOSE*100 ENDIF TCONDITION = TIME>090000 AND TIME<163000 IF TCONDITION THEN MAXPRICE=MAX(MAXPRICE,HIGH) MINPRICE=MIN(MINPRICE,LOW) ENDIF RETURN MAXPRICE AS "RANGETOP", MINPRICE AS "RANGEBOTTOM"


Comment