Skip to content

Commit 3c45789

Browse files
committed
Redundant Strategy.get_indicators_dataframe() helper method
1 parent 6d4c70c commit 3c45789

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

backtesting/backtesting.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ def _check_params(self, params):
7777
"can be optimized or run with.")
7878
setattr(self, k, v)
7979
return params
80-
81-
def get_indicators_dataframe(self):
82-
"""
83-
Compile all indicator arrays into a DataFrame with the same index as the strategy data.
84-
"""
85-
86-
indicators_dict = {ind.name: ind for ind in self._indicators}
87-
return pd.DataFrame(indicators_dict, index=self._data.index)
8880

8981
def I(self, # noqa: E743
9082
func: Callable, *args,

0 commit comments

Comments
 (0)