Need exit long position strategy code

I need an exit long position code …when price goes up buy price by 1%

Tradescript signals are generated in reference to candlestick and indicator conditions , referencing specific targets from your trade entry price not supported on tradescript.