NSE will now have an F&O expiry on every day of the week except Monday, with effect from the week starting July 9. This includes Nifty Financial Services expiry on Tuesday, Nifty Midcap Select on Wednesday, Nifty 50 on Thursday and Nifty Bank on Friday. With this change, our script is now flexible enough to adopt any day. Select the expiry day and script should work accordingly.