Need a Code to Back Test

Can I have a code for (Zerodha BackTest)

Buy : When 5 EMA Crosses Above 17 EMA. Exit after 1% Profit
Short Sell : When 17 EMA Crosses Below 5 EMA. Exit after 1% Profit

NaMasTe TraDeR,

BUY SCRIPT:

CROSSOVER(EMA(CLOSE,5) , EMA(CLOSE,17))

SHORT SELL SCRIPT:

CROSSOVER(EMA(CLOSE,17) , EMA(CLOSE,5))

Defining your exit strategy as a % to your trade entry price is not codeable on Tradescript