Skip to content

Commit 05329de

Browse files
committed
BUG: Honor .plot(resample=False) to not resample plots
Refs: #156 (comment)
1 parent c006fc0 commit 05329de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _maybe_resample_data(resample_rule, df, indicators, equity_data, trades):
9393
if isinstance(resample_rule, str):
9494
freq = resample_rule
9595
else:
96-
if len(df) <= _MAX_CANDLES:
96+
if resample_rule is False or len(df) <= _MAX_CANDLES:
9797
return df, indicators, equity_data, trades
9898

9999
from_index = dict(day=-2, hour=-6, minute=1, second=0, millisecond=0,

0 commit comments

Comments
 (0)