We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f54fd76 commit 1715c91Copy full SHA for 1715c91
backtesting/backtesting.py
@@ -698,7 +698,7 @@ def run(self, **kwargs) -> pd.Series:
698
699
# Skip first few candles where indicators are still "warming up"
700
# +1 to have at least two entries available
701
- start = 1 + max((np.isnan(indicator.astype(float)).argmin()
+ start = 1 + max((np.isnan(indicator.astype(float)).argmin(axis=-1).max()
702
for _, indicator in indicator_attrs), default=0)
703
704
# Disable "invalid value encountered in ..." warnings. Comparison
0 commit comments