Power of stock 5 ema stretegy

I had some similar requirements and found this thread Backtesting 5 Ema Strategy of Power of stocks - #17 by Aditya_Gusain

I think you only require some minor changes and it should work