Merge pull request #9421 from konradbeck/patch-2

Update strategy-customization.md
This commit is contained in:
Matthias
2023-11-13 13:48:58 +01:00
committed by GitHub

View File

@@ -173,7 +173,7 @@ You can use [recursive-analysis](recursive-analysis.md) to check and find the co
In this example strategy, this should be set to 400 (`startup_candle_count = 400`), since the minimum needed history for ema100 calculation to make sure the value is correct is 400 candles. In this example strategy, this should be set to 400 (`startup_candle_count = 400`), since the minimum needed history for ema100 calculation to make sure the value is correct is 400 candles.
``` python ``` python
dataframe['ema100'] = ta.EMA(dataframe, timeperiod=400) dataframe['ema100'] = ta.EMA(dataframe, timeperiod=100)
``` ```
By letting the bot know how much history is needed, backtest trades can start at the specified timerange during backtesting and hyperopt. By letting the bot know how much history is needed, backtest trades can start at the specified timerange during backtesting and hyperopt.