Code for following strategy

Strategy 1 :

if RSI( 2 ) is below 5
then buy if yesterday close > todays open

sell:
sell on market open next day, if yesterdays close crosses 3 day MA

Strategy 2:

if RSI( 2 ) is between 40 and 60 , then buy next day at yesterdays high
SL : yesterdays low
Sell : EOD

As per the above condition

Stratagy 1

Buy Script:

RSI(CLOSE, 2) < 5 AND REF(CLOSE,1)> OPEN

Sell Script:

CROSSOVER(REF(CLOSE,1),EMA(CLOSE,3)) AND OPEN>=LOW OR OPEN <=LOW

Stratagy 2

Buy Script:

40 < RSI(CLOSE, 2) < 60 AND REF(HIGH,1) 

Stop Loss:

REF(LOW,1)