From a126b0444c0eb0ac71d2101e5fc05461620dc4af Mon Sep 17 00:00:00 2001 From: Joe Schr Date: Fri, 5 Mar 2021 15:41:25 +0100 Subject: [PATCH] feature(custom_stoploss_with_psar): add populate_sell_trend() so it's a valid IStrategy --- user_data/strategies/custom_stoploss_with_psar.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/user_data/strategies/custom_stoploss_with_psar.py b/user_data/strategies/custom_stoploss_with_psar.py index ff1ad01..ac70ace 100644 --- a/user_data/strategies/custom_stoploss_with_psar.py +++ b/user_data/strategies/custom_stoploss_with_psar.py @@ -82,3 +82,12 @@ class CustomStoplossWithPSAR(IStrategy): 'buy'] = 1 return dataframe + + def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: + """ + Placeholder Strategy: does nothing + Based on TA indicators, populates the sell signal for the given dataframe + :param dataframe: DataFrame + :return: DataFrame with buy column + """ + return dataframe