mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
feat: improve formatting of generated strategy
This commit is contained in:
parent
b3a042a63b
commit
0995164110
|
@ -93,8 +93,8 @@ class {{ strategy }}(IStrategy):
|
||||||
buy_rsi = IntParameter(10, 40, default=30, space="buy")
|
buy_rsi = IntParameter(10, 40, default=30, space="buy")
|
||||||
sell_rsi = IntParameter(60, 90, default=70, space="sell")
|
sell_rsi = IntParameter(60, 90, default=70, space="sell")
|
||||||
|
|
||||||
{{ attributes | indent(4) }}
|
{{- attributes | indent(4) }}
|
||||||
{{ plot_config | indent(4) }}
|
{{- plot_config | indent(4) }}
|
||||||
|
|
||||||
def informative_pairs(self):
|
def informative_pairs(self):
|
||||||
"""
|
"""
|
||||||
|
@ -120,7 +120,7 @@ class {{ strategy }}(IStrategy):
|
||||||
:param metadata: Additional information, like the currently traded pair
|
:param metadata: Additional information, like the currently traded pair
|
||||||
:return: a Dataframe with all mandatory indicators for the strategies
|
:return: a Dataframe with all mandatory indicators for the strategies
|
||||||
"""
|
"""
|
||||||
{{ indicators | indent(8) }}
|
{{- indicators | indent(8) }}
|
||||||
|
|
||||||
return dataframe
|
return dataframe
|
||||||
|
|
||||||
|
@ -172,4 +172,4 @@ class {{ strategy }}(IStrategy):
|
||||||
'exit_short'] = 1
|
'exit_short'] = 1
|
||||||
"""
|
"""
|
||||||
return dataframe
|
return dataframe
|
||||||
{{ additional_methods | indent(4) }}
|
{{- additional_methods | indent(4) }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user