Fix hyperopt ticker interval download
This commit is contained in:
parent
524290d678
commit
321e3ede30
@ -461,6 +461,11 @@ def start(args):
|
|||||||
config = load_config(args.config)
|
config = load_config(args.config)
|
||||||
pairs = config['exchange']['pair_whitelist']
|
pairs = config['exchange']['pair_whitelist']
|
||||||
|
|
||||||
|
# If -i/--ticker-interval is use we override the configuration parameter
|
||||||
|
# (that will override the strategy configuration)
|
||||||
|
if args.ticker_interval:
|
||||||
|
config.update({'ticker_interval': args.ticker_interval})
|
||||||
|
|
||||||
# init the strategy to use
|
# init the strategy to use
|
||||||
config.update({'strategy': args.strategy})
|
config.update({'strategy': args.strategy})
|
||||||
strategy = Strategy()
|
strategy = Strategy()
|
||||||
@ -468,7 +473,7 @@ def start(args):
|
|||||||
|
|
||||||
timerange = misc.parse_timerange(args.timerange)
|
timerange = misc.parse_timerange(args.timerange)
|
||||||
data = optimize.load_data(args.datadir, pairs=pairs,
|
data = optimize.load_data(args.datadir, pairs=pairs,
|
||||||
ticker_interval=args.ticker_interval,
|
ticker_interval=strategy.ticker_interval,
|
||||||
timerange=timerange)
|
timerange=timerange)
|
||||||
optimize.populate_indicators = populate_indicators
|
optimize.populate_indicators = populate_indicators
|
||||||
PROCESSED = optimize.tickerdata_to_dataframe(data)
|
PROCESSED = optimize.tickerdata_to_dataframe(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user