diff --git a/freqtrade/templates/base_strategy.py.j2 b/freqtrade/templates/base_strategy.py.j2 index dd6b773e1..df2c8c213 100644 --- a/freqtrade/templates/base_strategy.py.j2 +++ b/freqtrade/templates/base_strategy.py.j2 @@ -41,6 +41,13 @@ class {{ strategy }}(IStrategy): "0": 0.04 } + # Dynamic ROI - It is not recommended to enable this without first fully + # reading the documentation. + # This attribute will be overridden if the config file contains "minimal_roi". + dynamic_roi = { + 'dynamic_roi_enabled': False + } + # Optimal stoploss designed for the strategy. # This attribute will be overridden if the config file contains "stoploss". stoploss = -0.10 diff --git a/freqtrade/templates/sample_strategy.py b/freqtrade/templates/sample_strategy.py index db1ba48b8..1aa1ffc09 100644 --- a/freqtrade/templates/sample_strategy.py +++ b/freqtrade/templates/sample_strategy.py @@ -42,6 +42,13 @@ class SampleStrategy(IStrategy): "0": 0.04 } + # Dynamic ROI - It is not recommended to enable this without first fully + # reading the documentation. + # This attribute will be overridden if the config file contains "minimal_roi". + dynamic_roi = { + 'dynamic_roi_enabled': False + } + # Optimal stoploss designed for the strategy. # This attribute will be overridden if the config file contains "stoploss". stoploss = -0.10