From e00f42f905cd2a3f5a0acc1d3be613a521589485 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 30 Mar 2021 07:38:38 +0200 Subject: [PATCH] Add mandatory properties to psar strategy closes #141 --- user_data/strategies/custom_stoploss_with_psar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_data/strategies/custom_stoploss_with_psar.py b/user_data/strategies/custom_stoploss_with_psar.py index 6ba070e..13948fb 100644 --- a/user_data/strategies/custom_stoploss_with_psar.py +++ b/user_data/strategies/custom_stoploss_with_psar.py @@ -15,6 +15,7 @@ from datetime import datetime from freqtrade.persistence import Trade from freqtrade.state import RunMode + class CustomStoplossWithPSAR(IStrategy): """ this is an example class, implementing a PSAR based trailing stop loss @@ -23,7 +24,8 @@ class CustomStoplossWithPSAR(IStrategy): the populate_buy_trend() function is pretty nonsencial """ - + timeframe = '1h' + stoploss = -0.2 custom_info = {} use_custom_stoploss = True