Code for following in pi scanner

crossover of
buy
when 5day simple moving average crossing from below to above to its 10sma(of 5 day sma).
and vice versa for sell

TRADESCRIPT CODE FOR ZERODHA PI SCANNER BUY:

CROSSOVER(SMA(CLOSE,5) , SMA(CLOSE,10))

TRADESCRIPT CODE FOR ZERODHA PI SCANNER SELL:

CROSSOVER(SMA(CLOSE,10) , SMA(CLOSE,5))