I need a code for Exit strategy

I need a exit strategy for three white soldiers. I need a trade-script code.
I want to take the three white soldiers price range and keep that same price range as my exit point.
ex: if the 3 white soldiers went 2 rupees up (Price: 192 - 194), I want to exit at the next 2 rupees (Price: 196).
Can we write a code for this exit strategy.
Please help me out.

Thanks & Regards,

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