Skip to content

Commit 3dc1adf

Browse files
committed
docs: slight formatting tweaks
1 parent 38754e0 commit 3dc1adf

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

docs/lookahead-analysis.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ These are set to avoid users accidentally generating false positives.
2929

3030
--8<-- "commands/lookahead-analysis.md"
3131

32-
!!! Note ""
32+
!!! Note
3333
The above output was reduced to options that `lookahead-analysis` adds on top of regular backtesting commands.
3434

3535
### Introduction
3636

3737
Many strategies, without the programmer knowing, have fallen prey to lookahead bias.
38-
This typically makes the strategy backtest look profitable, sometimes to extremes,
39-
but this is not realistic as the strategy is "cheating" by looking at data it would not have in dry or live modes.
38+
This typically makes the strategy backtest look profitable, sometimes to extremes, but this is not realistic as the strategy is "cheating" by looking at data it would not have in dry or live modes.
4039

41-
The reason why strategies can "cheat" is
42-
because the freqtrade backtesting process populates the full dataframe including all candle timestamps at the outset.
40+
The reason why strategies can "cheat" is because the freqtrade backtesting process populates the full dataframe including all candle timestamps at the outset.
4341
If the programmer is not careful or oblivious how things work internally
4442
(which sometimes can be really hard to find out) then the strategy will look into the future.
4543

@@ -48,8 +46,7 @@ This command is made to try to verify the validity in the form of the aforementi
4846
### How does the command work?
4947

5048
It will start with a backtest of all pairs to generate a baseline for indicators and entries/exits.
51-
After this initial backtest runs,
52-
it will look if the `minimum-trade-amount` is met and if not cancel the lookahead-analysis for this strategy.
49+
After this initial backtest runs, it will look if the `minimum-trade-amount` is met and if not cancel the lookahead-analysis for this strategy.
5350
If this happens, use a wider timerange to get more trades for the analysis, or use a timerange where more trades occur.
5451

5552
After setting the baseline it will then do additional backtest runs for every entry and exit separately.
@@ -97,8 +94,7 @@ especially if your entry and exit conditions use the same biased indicator.
9794
### Caveats
9895

9996
- `lookahead-analysis` can only verify / falsify the trades it calculated and verified.
100-
If the strategy has many different signals / signal types, it's up to you to select appropriate parameters
101-
to ensure that all signals have triggered at least once. Signals that are not triggered will not have been verified.
97+
If the strategy has many different signals / signal types, it's up to you to select appropriate parameters to ensure that all signals have triggered at least once. Signals that are not triggered will not have been verified.
10298
This would lead to a false-negative, i.e. the strategy will be reported as non-biased.
10399
- `lookahead-analysis` has access to the same backtesting options and this can introduce problems.
104100
Please don't use any options like enabling position stacking as this will distort the number of checked signals.

0 commit comments

Comments
 (0)