From c51603b1109cebcbc146246d69a4dc935aba5bd6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 23 Feb 2022 20:16:52 +0100 Subject: [PATCH] Slightly improve formatting, Point to documentation --- freqtrade/templates/base_strategy.py.j2 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/freqtrade/templates/base_strategy.py.j2 b/freqtrade/templates/base_strategy.py.j2 index b98b75118..06abecc42 100644 --- a/freqtrade/templates/base_strategy.py.j2 +++ b/freqtrade/templates/base_strategy.py.j2 @@ -129,13 +129,15 @@ class {{ strategy }}(IStrategy): (dataframe['volume'] > 0) # Make sure Volume is not 0 ), 'enter_long'] = 1 - # Uncomment to use shorts (remember to set margin in trading mode in configuration) - '''dataframe.loc[ + # Uncomment to use shorts (Only used in futures/margin mode. Check the documentation for more info) + """ + dataframe.loc[ ( {{ sell_trend | indent(16) }} (dataframe['volume'] > 0) # Make sure Volume is not 0 ), - 'enter_short'] = 1''' + 'enter_short'] = 1 + """ return dataframe @@ -152,12 +154,14 @@ class {{ strategy }}(IStrategy): (dataframe['volume'] > 0) # Make sure Volume is not 0 ), 'exit_long'] = 1 - # Uncomment to use shorts (remember to set margin in trading mode in configuration) - '''dataframe.loc[ + # Uncomment to use shorts (Only used in futures/margin mode. Check the documentation for more info) + """ + dataframe.loc[ ( {{ buy_trend | indent(16) }} (dataframe['volume'] > 0) # Make sure Volume is not 0 ), - 'exit_short'] = 1''' + 'exit_short'] = 1 + """ return dataframe {{ additional_methods | indent(4) }}