Continuous Strangle adjustment — Tradetron Community
← Community

Continuous Strangle adjustment

Keyword help 1,837 views

puneet

Dear Team,

please help me in writing code based on below criteria …

Strategy : Selling 50 Rs Call and put on Thursday at 2:00 PM of weekly expiry

Simple continuous adjustment :

  • If call goes double that of put then put gets squared off and sell again put LTP equal to current price of call till expiry is reached.

  • Same will in case of Put … If Put goes double that of Call then Call gets squared off and sell again put LTP equal to current price of Put… till expiry is reached.

CA Rahul Aggarwal

I also want its answer

raj

The problem is looking up the “same LTP as the existing leg” after you close the low premium leg. As TT says, this is not possible in portal currently and needs to be custom made.
Alternative solution is to simply Sell the “current ATM” of the leg that got squared off, or go for ITM by a strike or two for higher premiums - wont be precise but the trade logic works the same since you are getting higher premiums in place of the closed position.
Coding such a thing is easy to do in TT portal.

Tradetron Team Tradetron team

This can now be built without custom code, using Find Strike (strike whose LTP is closest to a value you give).

  1. Entry (Thursday 14:00): sell a CE and a PE with Strike Fx = Find Strike(NIFTY 50, Select Expiry('week', 0), 'ltp', Number(50), 'CE', 'any') (and 'PE').
  2. Repair Once – call doubled: LTP(CE leg) >= Math Operation(LTP(PE leg), Number(2), '*'). In the position, exit the PE leg and sell a new PE with Strike Fx = Find Strike(NIFTY 50, Select Expiry('week', 0), 'ltp', LTP(<CE leg>), 'PE', 'any').
  3. Mirror it for the put side.

Reference legs with Traded Instrument / Traded Instrument Name. Repair Once fires once per run, so continuous rolling until expiry needs care. Test in Live Offline. For a ready build, use https://questionnaire.tradetron.tech/ (paid). Keyword inputs: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.