From 6b11f3063f90e043a0b52d4261dc2bf36def2af0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 15 Aug 2023 06:58:50 +0200 Subject: [PATCH] "minimal" strategy templates shouldn't render all attributes --- freqtrade/commands/deploy_commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/commands/deploy_commands.py b/freqtrade/commands/deploy_commands.py index 9ec33eac4..8237a63db 100644 --- a/freqtrade/commands/deploy_commands.py +++ b/freqtrade/commands/deploy_commands.py @@ -35,6 +35,10 @@ def deploy_new_strategy(strategy_name: str, strategy_path: Path, subtemplate: st Deploy new strategy from template to strategy_path """ fallback = 'full' + attributes = render_template_with_fallback( + templatefile=f"strategy_subtemplates/strategy_attributes_{subtemplate}.j2", + templatefallbackfile=f"strategy_subtemplates/strategy_attributes_{fallback}.j2", + ) indicators = render_template_with_fallback( templatefile=f"strategy_subtemplates/indicators_{subtemplate}.j2", templatefallbackfile=f"strategy_subtemplates/indicators_{fallback}.j2", @@ -58,6 +62,7 @@ def deploy_new_strategy(strategy_name: str, strategy_path: Path, subtemplate: st strategy_text = render_template(templatefile='base_strategy.py.j2', arguments={"strategy": strategy_name, + "attributes": attributes, "indicators": indicators, "buy_trend": buy_trend, "sell_trend": sell_trend,