Exit strategy Next day using Get Runtime function

Hello Friends,

I am running a strategy with multiple indices and expires. Want to take positions towards end of day and exit next day 0920.
I have declared variable “EntryDay” at the runtime variable section of Set 1 as below!

My Universal exit condition is attached

Issue - Universal condition is met as soon as the Entry condition
Entry - 1515:00
Universal exit - 15:15:02

Notification log shows

Screenshot 2024-08-20 at 8.46.07 PM

What change do i need to make here to exit next day?

Pls help
Thank You

Please try this and check.

image

Thanks Vinayak
I declared the variable EntryDay under the Initialise Variable section and removed it from Runtime Variables, which solved the problem.

Set 1 where i had initially declared “EntryDay” under runtime variables doesn’t run on Mondays, therefore EntryDay didn’t have any value on Monday. Due to which the positions were exited immediately as soon as they took entry