Frictrade
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user