Intraday SMA-EMA Crossover

I would be grateful if someone helps me with this intraday crossover code or gives me the link if already done (or location in Pi menu). I wish to use two moving averages: the 10-min SMA and the 30-min EMA. If colour coding of the line is possible then I wish to see SMA in blue and EMA in red colour

​Regards

buy- 

CROSSOVER(SMA(CLOSE,10),EMA(CLOSE,30))

SeLL-

CROSSOVER(EMA(CLOSE,30),SMA(CLOSE,10))

color coding not possible

has to be added manually on chart

WHAT WILL THE CODE IF I WANT TO IMPLEMENT IT IN 2 MINUTE INTERVAL?