BUG: for issue #227, made more mappings for hourly frequency

This commit is contained in:
Frederic Fortier
2018-02-14 20:26:41 -05:00
parent 041665dee1
commit 2ba825db9b
3 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ def handle_data(context, data):
context.asset,
fields='price',
bar_count=20,
frequency='30T'
frequency='1H'
)
last_traded = prices.index[-1]
log.info('last candle date: {}'.format(last_traded))
@@ -114,7 +114,7 @@ def analyze(context, perf):
if __name__ == '__main__':
mode = 'backtest'
mode = 'live'
if mode == 'backtest':
run_algorithm(