Improve get_pair_dataframe doc wording
This commit is contained in:
parent
abe4d32ead
commit
943f5f21ff
@ -655,13 +655,13 @@ This is where calling `self.dp.current_whitelist()` comes in handy.
|
|||||||
# fetch live / historical candle (OHLCV) data for the first informative pair
|
# fetch live / historical candle (OHLCV) data for the first informative pair
|
||||||
inf_pair, inf_timeframe = self.informative_pairs()[0]
|
inf_pair, inf_timeframe = self.informative_pairs()[0]
|
||||||
informative = self.dp.get_pair_dataframe(pair=inf_pair,
|
informative = self.dp.get_pair_dataframe(pair=inf_pair,
|
||||||
timeframe=inf_timeframe)
|
timeframe=inf_timeframe)
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! Warning "Warning about backtesting"
|
!!! Warning "Warning about backtesting"
|
||||||
Be careful when using dataprovider in backtesting. `historic_ohlcv()` (and `get_pair_dataframe()`
|
In backtesting, `dp.get_pair_dataframe()` behavior differs depending on where it's called.
|
||||||
for the backtesting runmode) provides the full time-range in one go,
|
Within `populate_*()` methods, `dp.get_pair_dataframe()` returns the full timerange. Please make sure to not "look into the future" to avoid surprises when running in dry/live mode.
|
||||||
so please be aware of it and make sure to not "look into the future" to avoid surprises when running in dry/live mode.
|
Within [callbacks](strategy-callbacks.md), you'll get the full timerange up to the current (simulated) candle.
|
||||||
|
|
||||||
### *get_analyzed_dataframe(pair, timeframe)*
|
### *get_analyzed_dataframe(pair, timeframe)*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user