From f897af5a0a1cd6e8a039e2eaad878b31dc099bd4 Mon Sep 17 00:00:00 2001 From: Raidas Grisk <30408368+RaidasGrisk@users.noreply.github.com> Date: Mon, 8 Jan 2018 23:25:06 +0200 Subject: [PATCH] Update main.py --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index fbb0aa2..f02209d 100644 --- a/main.py +++ b/main.py @@ -62,6 +62,7 @@ def do_stuff_every_period(): # download latest data # always check if new candle is present, because even after 5 seconds, it might be not formed if market is very calm + # make sure this loop does not loop endlessly on weekends (this is configured in scheduler) while True: oanda_data = get_latest_oanda_data('EUR_USD', 'H1', 300) # many data-points to increase EMA and such accuracy current_complete_candle_stamp = oanda_data[-1]['time']