Selection of expiry week on the basis of day of the week — Tradetron Community
← Community

Selection of expiry week on the basis of day of the week

Keyword help 892 views

RK GUPTA

HI,

can anyone help in selecting ‘next week expiry’ in position builder on thursdays and Wednesdays?

Tradetron Team Tradetron team

Short answer: use two sets, or two conditions: one trades the current week, the other trades next week (offset 1). Gate them on the days left to expiry, not on fixed weekday names, because expiry weekdays change.

Example

  • Days left: Days Difference (D2-D1) ( Today ( NSE ), Current Week Expiry ( NIFTY 50, 0 ) )
  • Set A (current week, offset 0): days left >= 2.
  • Set B (next week, offset 1 in the leg’s Expiry Fx): days left <= 1.

If you prefer weekdays, Week Day returns 1 (Mon) to 5 (Fri). Check the current expiry day before relying on it.

Test in Live Offline around an expiry week.

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