create dedicated minimal freqai test strat

This commit is contained in:
robcaulk
2022-07-20 14:39:28 +02:00
parent 88d769d801
commit c43935e82a
3 changed files with 205 additions and 3 deletions

View File

@@ -16,8 +16,8 @@ def freqai_conf(default_conf):
freqaiconf.update(
{
"datadir": Path(default_conf["datadir"]),
"strategy": "FreqaiExampleStrategy",
"strategy-path": "freqtrade/templates",
"strategy": "freqai_test_strat",
"strategy-path": "freqtrade/tests/strategy/strats",
"freqaimodel": "LightGBMPredictionModel",
"freqaimodel_path": "freqai/prediction_models",
"timerange": "20180110-20180115",

View File

@@ -163,5 +163,5 @@ def test_use_strategy_to_populate_indicators(mocker, default_conf):
df = freqai.dk.use_strategy_to_populate_indicators(strategy, corr_df, base_df, 'LTC/BTC')
assert len(df.columns) == 90
assert len(df.columns) == 45
shutil.rmtree(Path(freqai.dk.full_path))