AFL for Opening range breakout

Hi , I am looking for afl code for opening range breakout with these entry and exit condition.

System Name : Opening range breakout
Instrument option
Range : start time 09:16 - end time 09:31 (dynamic)
buy entry : if range high is broken in 1 min close
sl buy : range low (Initial sl)- start trailing per new high tick (1 point new high will trail sl 1 point)
sell entry : if range low is broken in 1 min close
sl sell : x% of entry price(initial sl)(default is 0.5% dynamic - we can adjust this percentage)
trail sl as per new low tick(1 point new low will trail sl to 1 point of % of initial sl)
thanks a lot.

Similar threads