Help with Tradescript coding

Hi,

Could someone please help me code the following conditions in Tradescript?

BUY Script condition:

Buy when the RSI values Cross above 30 and less the value is than 60


For example say Yesterday RSI is at 13 for a particular share and today it is 32 then buy the share


Sell Script condition

Sell the share on the next day irrespective of the price movement.

As per your condition

Buy Script:

RSI(CLOSE,1)>30 AND RSI(CLOSE,1)<60

Sell Script:

LAST>OPEN

use the time frame as day charts