I want a codes for my reversal strategy

THIS IS THE REVERSAL STRATEGY

BUY SIGNAL

I WANT CODES WHEN RSI FALL BELOW 20,VOLUME INCREASE BY 100% OF PREVIOUS ONE HOUR,THREE CONSECUTIVE FIVE MINUTES RED CANDLES

SELL SIGNAL

VICE VERSA

For the above condition use one hour candle time frame

Buy Script:

RSI(CLOSE,14)<20 AND VOLUME > 2*REF(VOLUME,1)

Sell Script:

RSI(CLOSE,14)>20 AND VOLUME > 2*REF(VOLUME,1)

it cant be done on lesser time frame?

as you have mentioned hour timeframe in condition