How to back testing in pi and provide simple scripted alert coding for exponential moving average crossover

Hi,

Checkout these videos for backtesting in pi.

https://www.youtube.com/watch?v=zKIv615JxxA
https://www.youtube.com/watch?v=m4AHEaKyJMc 

For simple ema crossover code check tradescript help in pi under help menu(not sure but in menu only:))