Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raidastauras authored Jan 8, 2018
1 parent 4b42624 commit f897af5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit f897af5

Please sign in to comment.