RSI and CCI strategy

I need working code for RSI crossover - ie when RSI 9 crosses over RSI 14 and/or CCI 7 crossing above zero line from below.

I tried with following for BUY but it’s not giving me all signals during backtest.

CROSSOVER(RSI(CLOSE, 9),RSI(CLOSE, 14)) or crossover(cci(7,simple),0)

Similarly if you can kindly provide SELL code.

Thanks a lot.

As per above condition

CROSSOVER(RSI(CLOSE,9),RSI(CLOSE,14)) AND CCI(7, SIMPLE) > 0 AND REF(CCI(7, SIMPLE), 1) < 0

this code doesn’t give desired results. can you pls correct it & write back. thanks.

exactly as per condition it have been written. for desired /good results in the sense you have to work on with paramenters /values or conditions.