From edf77a18697031448537da6af27fa99bf84995bb Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Mar 2021 19:19:59 +0100 Subject: [PATCH] Add sell column to avoid runtime failures --- user_data/strategies/custom_stoploss_with_psar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user_data/strategies/custom_stoploss_with_psar.py b/user_data/strategies/custom_stoploss_with_psar.py index 73cb46d..6ba070e 100644 --- a/user_data/strategies/custom_stoploss_with_psar.py +++ b/user_data/strategies/custom_stoploss_with_psar.py @@ -91,4 +91,6 @@ class CustomStoplossWithPSAR(IStrategy): :param dataframe: DataFrame :return: DataFrame with buy column """ + # Deactivated sell signal to allow the strategy to work correctly + dataframe.loc[:, 'sell'] = 0 return dataframe