feat: improve formatting of generated strategy

This commit is contained in:
Matthias 2024-08-17 16:36:21 +02:00
parent b3a042a63b
commit 0995164110

View File

@ -93,8 +93,8 @@ class {{ strategy }}(IStrategy):
buy_rsi = IntParameter(10, 40, default=30, space="buy")
sell_rsi = IntParameter(60, 90, default=70, space="sell")
{{ attributes | indent(4) }}
{{ plot_config | indent(4) }}
{{- attributes | indent(4) }}
{{- plot_config | indent(4) }}
def informative_pairs(self):
"""
@ -120,7 +120,7 @@ class {{ strategy }}(IStrategy):
:param metadata: Additional information, like the currently traded pair
:return: a Dataframe with all mandatory indicators for the strategies
"""
{{ indicators | indent(8) }}
{{- indicators | indent(8) }}
return dataframe
@ -172,4 +172,4 @@ class {{ strategy }}(IStrategy):
'exit_short'] = 1
"""
return dataframe
{{ additional_methods | indent(4) }}
{{- additional_methods | indent(4) }}