Thursday btst how code — Tradetron Community
← Community

Thursday btst how code

Error execution 1,575 views

Pallavi date

Thursday btst not working how to work

Lion Algos

Attach your code screen shot here

Pallavi date

my strategy is thursday 15:25 PM short sell CE AND PE and next day friday 15 :20 exit position and it is working . but repaire once not work repaire once getting next to next week expiry

Lion Algos

I believe your strategy will not have possibility to exit on Thursday itself. So you try use current week expiry instead of next week expiry in ‘Repair Once’ condition builder

Tradetron Team Tradetron team

For a BTST/STBT that sells on one day and exits the next:

  1. Entry: Week Day('NSE') == Number(<day>) AND Time('NSE') >= Number(1525).
  2. Expiry in the Position builder and in Repair Once: use the same expiry for both. Use offset 0 (current) in the Expiry Fx, e.g. Current Week Expiry('NIFTY 50', 0), unless you really want next week. If entry is on expiry day itself, the current expiry ends that day, which is why the strategy may jump to the next one.
  3. Exit: next day, e.g. Time('NSE') >= Number(1520) AND Today('NSE') != EntryDate.

Expiry days and which indices have weekly options change from time to time (BANKNIFTY is monthly only now), so check the current expiry day before fixing a weekday in your rule.

If it still behaves oddly, send the SID via chat on tradetron.tech.

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