diff --git a/examples/no_ui/run.py b/examples/no_ui/run.py index c5e30823..29cdbcd4 100644 --- a/examples/no_ui/run.py +++ b/examples/no_ui/run.py @@ -85,9 +85,9 @@ def run_parent(): # Check whether in trading period if ( - (current_time >= DAY_START and current_time <= DAY_END) or - (current_time >= NIGHT_START) or - (current_time <= NIGHT_END) + (current_time >= DAY_START and current_time <= DAY_END) + or (current_time >= NIGHT_START) + or (current_time <= NIGHT_END) ): trading = True