Hi, I am trying to code the algo to only process buy signals in the last 15 minutes of the day, so 3:45 to 4:00 PM EST, so I have an evaluation time variable to create that condition.
# Timestamp of last 15 minutes (15:45 or 3:45 PM EST)
evaluation_time = datetime(year, month, day, 15, 45)
However, what I put in my comment does not match reality. The very first trade executes at 7:48 AM (of which time zone, I have no idea, Quantopia doesn't show it), which is clearly not what I want. What time zone is native to the build?
I should add that the evaluation_time is being compared to this variable...so I have no idea if the two time zones are matching. I'm assuming one is UTC at least. Maybe there's a way to check the time zone but I'm going to have to come back to this later.
current_datetime = data.current(sid(8554), "last_traded")