Coding for exit strategy

I need a code for exit strategy in zerodha pi backtesting for following situation:

Exit if price is 0.9*Buy Price OR CROSSOVER(AroonDown(1),AroonUp(1)) whichever happens first.


Referencing Exit Signals to your Entry Price is not supported on tradescript.

Tradescript recognizes only candlestick and indicator conditions.