Adjust imports to data.history

This commit is contained in:
Matthias
2018-12-13 06:34:10 +01:00
parent 0250a96feb
commit 432cc00283
3 changed files with 8 additions and 5 deletions

View File

@@ -8,10 +8,11 @@ import numpy as np
import utils_find_1st as utf1st
from pandas import DataFrame
import freqtrade.optimize as optimize
from freqtrade import constants, OperationalException
from freqtrade.arguments import Arguments
from freqtrade.arguments import TimeRange
from freqtrade.data import history
from freqtrade.optimize import get_timeframe
from freqtrade.strategy.interface import SellType
@@ -47,7 +48,7 @@ class Edge():
self.strategy = strategy
self.ticker_interval = self.strategy.ticker_interval
self.tickerdata_to_dataframe = self.strategy.tickerdata_to_dataframe
self.get_timeframe = optimize.get_timeframe
self.get_timeframe = get_timeframe
self.advise_sell = self.strategy.advise_sell
self.advise_buy = self.strategy.advise_buy
@@ -97,7 +98,7 @@ class Edge():
logger.info('Using stake_currency: %s ...', self.config['stake_currency'])
logger.info('Using local backtesting data (using whitelist in given config) ...')
data = optimize.load_data(
data = history.load_data(
self.config['datadir'],
pairs=pairs,
ticker_interval=self.ticker_interval,