Applying talib "all_all_ta_features" throws an error in Strategy #983
Answered
by
kernc
adamjbradley
asked this question in
Q&A
-
Or should I just apply to the df prior to passing it to the Backtest call? class SprayAndPray(Strategy):
def init(self):
def ApplyAllIndicators(data):
print(data.df)
data.df = add_all_ta_features(data.df, open="Open", high="High", low="Low", close="Close", volume="Volume", fillna=True)
return ApplyAllIndicators(data)
self.I(ApplyAllIndicators, self.data)
def next(self):
... |
Beta Was this translation helpful? Give feedback.
Answered by
kernc
May 14, 2023
Replies: 1 comment 2 replies
-
That would be better. Since it's generated on-the-fly, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
adamjbradley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That would be better. Since it's generated on-the-fly,
Strategy.data.df
cannot be assigned to in the way you expect.