You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think so too @DanOKeefe. I also think it should wait until market opens to check this 15 minutes elapsed logic so that the program does not run before 9am.
If the condition in this while loop ever evaluates to
True
, it will always beTrue
.current_dt and market_open never change wthin the while loop, which means that since_market_open will never change within the while loop. This means
will never evaluate to
False
if it is intiallyTrue
Momentum-Trading-Example/algo.py
Lines 392 to 394 in be43528
I believe it should be:
The text was updated successfully, but these errors were encountered: