I'm looking to run some code during the first 10 minutes of the session and run different code after the first 10 minutes.
How can I determine this time frame without hardcoding the time (i.e. without writing specifically 9:30-9:40) and regardless of bar period size?
I was thinking of using the FirstBarOfSession, but Time[0] gives me the current time. How can I tell when FirstBarOfSession started?
Thanks.
Comment