Below are some tradescripts for buy and sell which you should backtest and try if useful.
open=low open=high
CROSSOVER(SMA(CLOSE,20),EMA(CLOSE,5) CROSSOVER(SMA(CLOSE,5),EMA(CLOSE,20))
RSI(CLOSE,8) < 40 AND REF(RSI(CLOSE,8),1) >= 40 RSI(CLOSE,8) > 40 AND REF(RSI(CLOSE,8),1) <= 40
RSI(CLOSE,8) < 60 AND REF(RSI(CLOSE,8),1) >= 60 RSI(CLOSE,8) > 60 AND REF(RSI(CLOSE,8),1) <= 60
crossover(EMA( Close , 5 ) , EMA( Close , 13 )) crossover(EMA( Close , 13 ) ,EMA( Close , 5 ))
Buy =
Open > Ref( Close , -1 );
Sell =
Ref( Close , -1 ) < Open;
crossover(DIP(2), DIN(2)) AND ADX(14) > 25 crossover(DIN(2) DIP(2)) AND ADX(14) > 25
REF (CLOSE, 1) > REF (HIGH, 2) AND CLOSE > REF (HIGH, 1) REF (CLOSE, 1) < REF (LOW, 2) AND CLOSE < REF (LOW, 1)
((Ref(SOPK(14, 3, 3, SIMPLE), 1)) > SOPK(14, 3, 3, SIMPLE)) and (SOPK(14, 3, 3, SIMPLE) > 80) ((Ref(SOPK(14, 3, 3, SIMPLE), 1)) < SOPK(14, 3, 3, SIMPLE)) and (SOPK(14, 3, 3, SIMPLE) > 20)
crossover(DIP(2), DIN(2)) crossover(DIN(2), DIP(2))
RSI(CLOSE,8) < 60 RSI(CLOSE,8)>= 60 RSI(CLOSE,8) < 40 RSI(CLOSE,8) >= 40
CROSSOVER(CLOSE, EMA(CLOSE,50 ))
CROSSOVER(EMA(CLOSE, 50), CLOSE)
CROSSOVER(EMA(CLOSE, 13), EMA(CLOSE, 21)) AND CROSSOVER(DIP(14), DIN(14)) CROSSOVER(EMA(CLOSE, 21), EMA(CLOSE, 13)) AND CROSSOVER(DIN(14), DIP(14))
crossover(SOPK(14,3,3,SIMPLE),20) crossover(80,SOPK(14,3,3,SIMPLE))
open=low Open > Ref( Close , -1 ) open=high Open < Ref( Close , -1 )