I want to trade on crossover of ema, how do I place such orders on Pi?

you can use the below EMA crossover code in create scripted alerts and can trade using alerts generated from the generated alerts window

# 20-period EMA crosses over the 60-period EMA

CROSSOVER(EMA(CLOSE, 20), EMA(CLOSE, 60))