From 20093ea090ad40d86fd884d98f7363351f83d121 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 20 Jan 2023 07:06:54 +0100 Subject: [PATCH] Add warning about callback call frequency in backtesting --- docs/bot-basics.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/bot-basics.md b/docs/bot-basics.md index 3df926371..925fc7862 100644 --- a/docs/bot-basics.md +++ b/docs/bot-basics.md @@ -75,3 +75,7 @@ This loop will be repeated again and again until the bot is stopped. !!! Note Both Backtesting and Hyperopt include exchange default Fees in the calculation. Custom fees can be passed to backtesting / hyperopt by specifying the `--fee` argument. + +!!! Warning "Callback call frequency" + Backtesting will call each callback at max. once per candle (`--timeframe-detail` modifies this behavior to once per detailed candle). + Most callbacks will be called once per iteration in live (usually every ~5s) - which can cause backtesting mismatches.