match config and strats to upstream freqai

This commit is contained in:
robcaulk 2022-08-15 18:27:48 +02:00
parent e5df39e891
commit 69d542d3e2
3 changed files with 73 additions and 76 deletions

View File

@ -55,6 +55,7 @@
}
],
"freqai": {
"enabled": true,
"model_save_type": "stable_baselines_ppo",
"conv_width": 10,
"follow_mode": false,

View File

@ -62,7 +62,7 @@ class ReinforcementLearningExample3ac(IStrategy):
coin = pair.split('/')[0]
with self.freqai.lock:
if informative is None:
informative = self.dp.get_pair_dataframe(pair, tf)
@ -111,8 +111,6 @@ class ReinforcementLearningExample3ac(IStrategy):
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
self.freqai_info = self.config["freqai"]
dataframe = self.freqai.start(dataframe, metadata, self)
return dataframe

View File

@ -62,7 +62,7 @@ class ReinforcementLearningExample5ac(IStrategy):
coin = pair.split('/')[0]
with self.freqai.lock:
if informative is None:
informative = self.dp.get_pair_dataframe(pair, tf)
@ -111,8 +111,6 @@ class ReinforcementLearningExample5ac(IStrategy):
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
self.freqai_info = self.config["freqai"]
dataframe = self.freqai.start(dataframe, metadata, self)
return dataframe