Coding for ema and rsi combination

i want to write the coding in backtest with respect to EMA and RSI combination.

Buy script when EMA of 9 days is greater then (EMA of 30 days and EMA of 45 days and RSI >30). My 9days EMA should crossover both EMA of 30 days and EMA of 45days.

Thanks

use daily charts for the below code

EMA(CLOSE,9)>EMA(CLOSE,45) AND EMA(CLOSE,9)>EMA(CLOSE,30) AND RSI(CLOSE,14)>30 AND CROSSOVER(EMA(CLOSE,9),EMA(CLOSE,45)) AND CROSSOVER(EMA(CLOSE,9),EMA(CLOSE,30))