DAYS Difference Keyword

How does DAY Difference kwyword work.

I want to take a trade of monthend expiry options on first Friday of the expiry.

any suggestions.

I have used day difference > 30 but it is not working.

Share the screen shot of condition builder…Please

Try this. Logic here is : This month expiry first Friday = Last Month Expiry Date + 1 Day

1 Like

and also add condition of [Week day (NSE)] == Number(5)

Yes we can but one catch here : if expiry happens on Wednesday instead of Thursday then it fails.

1 Like

So use AND of both condition
Dayd Difference D2-D1 >= 1
AND
Week day(NSE) == Number (4)

Number(4) …you mean Number(5)?

1 Like

Yes…5 for Friday…

It works. But as I mentioned earlier it fails in scenario of Wednesday expiry