Delay Reentry in Tradetron strategy — Tradetron Community
← Community

Delay Reentry in Tradetron strategy

Strategy 2,940 views

Ishan Dwivedi

Hello,
I want to create a strangle strategy in which reentry upon hitting of SL in any leg can be delayed by 5 minutes. I have been trying many combinations but nothing working.
Kindly help

Lion Algos

How about this option-- exit strategy upon SL hit and set “reactivate on exit” time to 5 min in advance setting

Amit Pathak

use LastRepairedTime Keyword.This keyword will return the time of repair of the selected underlying

Ishan Dwivedi

Thanks Sir. ill try this combination. However, it has to be done on both the legs independently. If CE SL gets triggered then Ill have to exit PE as well in this format i suppose.
Thanks for your support

Ishan Dwivedi

Sir please see my attempts

  1. Repair Once Conditions (s1 r2)

I think the issue is with S1R2. Please suggest something

It is not picking up s1r2 conditions

Thanks in advance

Tradetron Team Tradetron team

Use LastRepairedTime with Time Difference (T2-T1):

  • The SL exit sits in a Repair Once for each leg.
  • The re-entry Repair (or set entry) adds: Time Difference (T2-T1)(LastRepairedTime, Time('NSE')) >= Number(5).

Time Difference handles HHMM math (09:58 → 10:03 = 5). For leg-by-leg independent delays, store each leg’s exit time in its own Runtime Variable (ce_exit = Time('NSE')) and compare that. Test in Live Offline. Keyword reference: Keyword Documentation — Tradetron

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