Frictrade

This commit is contained in:
Jérôme Delacotte
2025-12-05 23:57:46 +01:00
parent ae98d11559
commit fc6d516252

View File

@@ -456,7 +456,7 @@ class FrictradeLearning(IStrategy):
# Add all ta features
pair = metadata['pair']
short_pair = self.getShortName(pair)
self.path = f"user_data/strategies/plots/{short_pair}/" + ("valide/" if not self.dp.runmode.value in ('backtest') else '')
self.path = f"user_data/strategies/plots/{short_pair}/" # + ("valide/" if not self.dp.runmode.value in ('backtest') else '')
heikinashi = qtpylib.heikinashi(dataframe)
dataframe['haopen'] = heikinashi['open']
@@ -779,6 +779,10 @@ class FrictradeLearning(IStrategy):
# # Indices correspondants
# indices = [(dataframe['mid'] - lvl).abs().idxmin() for lvl in levels]
# Non utilisé dans le modèle
dataframe['min60'] = talib.MIN(dataframe['mid'], timeperiod=60)
return dataframe
def getOpenTrades(self):