AFL code to find which 15min candle closed above 4 Hr high/low during intraday

#1
Hi All,

I would like to find out the 15 candle which closed above/below the 4 Hr or 1Hr High/low. Then enter next bar market and exit after a fixed number of points say 5.