Sell script required for 2% profit

Pleade help me with SELL script with 2% profit from BUY PRICE

Percentage based on buy price is not possible to code from tradescript, specify your condition based on candles OHLC