Slightly improve formatting, Point to documentation

This commit is contained in:
Matthias 2022-02-23 20:16:52 +01:00
parent 8e3839c74c
commit c51603b110

View File

@ -129,13 +129,15 @@ class {{ strategy }}(IStrategy):
(dataframe['volume'] > 0) # Make sure Volume is not 0 (dataframe['volume'] > 0) # Make sure Volume is not 0
), ),
'enter_long'] = 1 'enter_long'] = 1
# Uncomment to use shorts (remember to set margin in trading mode in configuration) # Uncomment to use shorts (Only used in futures/margin mode. Check the documentation for more info)
'''dataframe.loc[ """
dataframe.loc[
( (
{{ sell_trend | indent(16) }} {{ sell_trend | indent(16) }}
(dataframe['volume'] > 0) # Make sure Volume is not 0 (dataframe['volume'] > 0) # Make sure Volume is not 0
), ),
'enter_short'] = 1''' 'enter_short'] = 1
"""
return dataframe return dataframe
@ -152,12 +154,14 @@ class {{ strategy }}(IStrategy):
(dataframe['volume'] > 0) # Make sure Volume is not 0 (dataframe['volume'] > 0) # Make sure Volume is not 0
), ),
'exit_long'] = 1 'exit_long'] = 1
# Uncomment to use shorts (remember to set margin in trading mode in configuration) # Uncomment to use shorts (Only used in futures/margin mode. Check the documentation for more info)
'''dataframe.loc[ """
dataframe.loc[
( (
{{ buy_trend | indent(16) }} {{ buy_trend | indent(16) }}
(dataframe['volume'] > 0) # Make sure Volume is not 0 (dataframe['volume'] > 0) # Make sure Volume is not 0
), ),
'exit_short'] = 1''' 'exit_short'] = 1
"""
return dataframe return dataframe
{{ additional_methods | indent(4) }} {{ additional_methods | indent(4) }}