I’m looking for handling positions in Repair Continuous block. In set1 entry, I bought a call option
and whenever underlying moves 200 points I want to move my call to near atm, so within RC what should be the positions to close existing open ce position and create a new position
I’m able to create a new position but unable to point to the existing open position, coz initially it will be traded instrument (entry…) and later it will be traded instrument (repair continuous …)
I will not b able to use the exit block as some of the conditions of entry conditions may not satisfy immediately, I just want to roll over the position to the current atm strike.
What is the elegant way to do this???
Arijit
facing similar issue in RC, waiting for TT
Lion Algos
May be you can try as below
Set1 - Entry, Repair Once
Set2 - Entry, Exit (repeat entry and exit for every 200 point move)
Note: Set2 entry activated only if Set1-RepairOnce executed
Tradetron TeamTradetron team
Repair Continuous is hard to use for rolling because the open leg’s reference changes after each roll. A cleaner pattern:
Record the underlying price at each roll with LastRepairedUnderlyingPrice (or a Runtime Variable).
Repair Continuous condition: Absolute(LTP(underlying) − LastRepairedUnderlyingPrice) >= Number(200). For the first roll compare with EntryUnderlyingPrice.
In the Position Builder of that block, use two legs: exit the currently open call and buy the new ATM call (Strike ATM SPOT). To point at “whatever call is open”, use Traded Instrument Name with the strike/expiry of the last fill. Check Net Quantity so you never close what isn’t open.
If that gets messy, racha2068’s set-based approach (Set 2 entry/exit repeating each 200-point move) is easier to debug. For a fully generic roll, Python (Python Editor, GetVar/SetVar) or your AI over MCP can build it. Always bound Repair Continuous so it can’t loop. Test in Live Offline. Keyword reference: Keyword Documentation — Tradetron
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.