Add startup_candle_count to sample strategy

This commit is contained in:
Matthias 2019-10-23 17:58:26 +02:00
parent 6382a4cd04
commit 5c2682e2c9
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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',