Condition design — Tradetron Community
← Community

Condition design

Strategy 883 views

Alok Kapoor

The Entry Condition Is Satisfied( Day 1) ,the Next day(Day2) is for Repair Once now how to Code that Repair Continuous Start functioning from Day 3 and Repair Once condition is Not checked after Day2.
Thanks

Tradetron Team Tradetron team

Gate each block on how many days have passed since entry, using Days Difference (D2-D1) with EntryDate and Today:

  • Repair Once (day 2 only): Days Difference(EntryDate, Today('NSE')) == Number(1) AND your repair condition.
  • Repair Continuous (day 3 onward): Days Difference(EntryDate, Today('NSE')) >= Number(2) AND your condition.

Note: this counts calendar days, so a weekend in between adds days. If you need trading days, store a counter in a runtime variable instead. Also bound the Repair Continuous condition so it can’t stay true and loop, e.g. compare against LastRepairedPrice. 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.