PI backtesting algo

I have an intraday strategy, trading from last 2 years
so i want to backtest the strategy

strategy: gap up stocks (all fno stocks )
open > than privious day high short sell at 9.25
exit at 3.15

please provide me code for PI