Merge pull request #843 from freqtrade/more_timeframes

Add support for more timeframes
This commit is contained in:
Matthias 2018-06-04 16:23:19 +02:00 committed by GitHub
commit bee2541bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -318,7 +318,7 @@ class Arguments(object):
help='Specify which tickers to download. Space separated list. \ help='Specify which tickers to download. Space separated list. \
Default: %(default)s', Default: %(default)s',
choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h',
'6h', '8h', '12h', '1d', '3d', '1w', '1M'], '6h', '8h', '12h', '1d', '3d', '1w'],
default=['1m', '5m'], default=['1m', '5m'],
nargs='+', nargs='+',
dest='timeframes', dest='timeframes',

View File

@ -12,6 +12,7 @@ DEFAULT_STRATEGY = 'DefaultStrategy'
TICKER_INTERVAL_MINUTES = { TICKER_INTERVAL_MINUTES = {
'1m': 1, '1m': 1,
'3m': 3,
'5m': 5, '5m': 5,
'15m': 15, '15m': 15,
'30m': 30, '30m': 30,
@ -19,8 +20,10 @@ TICKER_INTERVAL_MINUTES = {
'2h': 120, '2h': 120,
'4h': 240, '4h': 240,
'6h': 360, '6h': 360,
'8h': 480,
'12h': 720, '12h': 720,
'1d': 1440, '1d': 1440,
'3d': 4320,
'1w': 10080, '1w': 10080,
} }