How to set targets & stop loss in zerodha pi Backtest?

I want to backtest my strategy where the exit would be either a stop loss percentage or target percentage. Can some help me out here?