Skip to content

Commit 6cbdd99

Browse files
committed
REF: Add tqdm to Optimize.run
Closes #1176
1 parent cf596b4 commit 6cbdd99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/backtesting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ def run(self, **kwargs) -> pd.Series:
13071307
# np.nan >= 3 is not invalid; it's False.
13081308
with np.errstate(invalid='ignore'):
13091309

1310-
for i in range(start, len(self._data)):
1310+
for i in _tqdm(range(start, len(self._data)), desc=self.run.__qualname__):
13111311
# Prepare data and indicators for `next` call
13121312
data._set_length(i + 1)
13131313
for attr, indicator in indicator_attrs:

0 commit comments

Comments
 (0)