How to save the buy price to calculate sell price

Below is my buy script:

TREND(CLOSE,5)=DOWN AND 
REF(CLOSE,1)>REF(OPEN,1) AND
REF(CLOSE,2)< REF(OPEN,2) AND
REF(OPEN,1)<REF(CLOSE,2) AND
REF(CLOSE,1)>REF(OPEN,2)

How to save this buy price to calculate sell price, say

sell price = (buy price + 1)

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