mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
use load_backtesting_data
This commit is contained in:
parent
bdff29a472
commit
14de46576b
|
@ -11,6 +11,7 @@ from pandas import DataFrame
|
|||
|
||||
from freqtrade import exchange
|
||||
from freqtrade.exchange import Bittrex
|
||||
from freqtrade.tests import load_backtesting_data
|
||||
from freqtrade.tests.test_backtesting import backtest, format_results
|
||||
from freqtrade.tests.test_backtesting import preprocess
|
||||
from freqtrade.vendor.qtpylib.indicators import crossed_above
|
||||
|
@ -69,8 +70,10 @@ def buy_strategy_generator(params):
|
|||
|
||||
|
||||
@pytest.mark.skipif(not os.environ.get('BACKTEST', False), reason="BACKTEST not set")
|
||||
def test_hyperopt(backtest_conf, backdata, mocker):
|
||||
def test_hyperopt(backtest_conf, mocker):
|
||||
mocked_buy_trend = mocker.patch('freqtrade.tests.test_backtesting.populate_buy_trend')
|
||||
|
||||
backdata = load_backtesting_data()
|
||||
processed = preprocess(backdata)
|
||||
exchange._API = Bittrex({'key': '', 'secret': ''})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user