Use strings instead of subtemplates

This commit is contained in:
Matthias
2019-11-21 19:28:53 +01:00
parent f26c40082d
commit f23f659ac5
3 changed files with 12 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ class {{ strategy }}(IStrategy):
:param metadata: Additional information, like the currently traded pair
:return: a Dataframe with all mandatory indicators for the strategies
"""
{% filter indent(8) %}{% include 'subtemplates/indicators_' + subtemplates + '.j2' %}{% endfilter %}
{{ indicators | indent(8) }}
return dataframe
@@ -115,7 +115,7 @@ class {{ strategy }}(IStrategy):
"""
dataframe.loc[
(
{% filter indent(16) %}{% include 'subtemplates/buy_trend_' + subtemplates + '.j2' %}{% endfilter %}
{{ buy_trend | indent(16) }}
(dataframe['volume'] > 0) # Make sure Volume is not 0
),
'buy'] = 1
@@ -131,7 +131,7 @@ class {{ strategy }}(IStrategy):
"""
dataframe.loc[
(
{% filter indent(16) %}{% include 'subtemplates/sell_trend_' + subtemplates + '.j2' %}{% endfilter %}
{{ sell_trend | indent(16) }}
(dataframe['volume'] > 0) # Make sure Volume is not 0
),
'sell'] = 1