Strategy for morning trade between 9:15 and 9:30 am

I need a code for the following strategy:-

I want to buy a script If the price of the script go above of the candles between 9:15 and 9:30.

AND

I want to Sell a script if the price of the script go below of the candles between 9:15 and 9:30.

As per the above condition it is not possible to code based on time with tradescript