Rollup or roll down based on previous sold strike price

Hello team,

Can anyone help me how to place the logics in tradetron wrt previously sold strike price of my option and not wrt ATM
I need to roll up or roll down when my stoploss or target is achieved.