diff --git a/freqtrade/strategy/default_strategy.py b/freqtrade/strategy/default_strategy.py index 0a241691c..6c343b477 100644 --- a/freqtrade/strategy/default_strategy.py +++ b/freqtrade/strategy/default_strategy.py @@ -39,7 +39,7 @@ class DefaultStrategy(IStrategy): 'stoploss_on_exchange': False } - # Count of candles the strategy requires before producing valid signals + # Number of candles the strategy requires before producing valid signals startup_candle_count: int = 20 # Optional time in force for orders diff --git a/user_data/strategies/sample_strategy.py b/user_data/strategies/sample_strategy.py index 80c30283d..c2fd681d2 100644 --- a/user_data/strategies/sample_strategy.py +++ b/user_data/strategies/sample_strategy.py @@ -59,6 +59,9 @@ class SampleStrategy(IStrategy): sell_profit_only = False ignore_roi_if_buy_signal = False + # Number of candles the strategy requires before producing valid signals + startup_candle_count: int = 20 + # Optional order type mapping. order_types = { 'buy': 'limit',