-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Applying talib "all_all_ta_features" throws an error in Strategy #983
-
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.
All reactions
Or should I just apply to the df prior to passing it to the Backtest call?
That would be better. Since it's generated on-the-fly, Strategy.data.df
cannot be assigned to in the way you expect.
Replies: 1 comment 2 replies
-
Or should I just apply to the df prior to passing it to the Backtest call?
That would be better. Since it's generated on-the-fly, Strategy.data.df
cannot be assigned to in the way you expect.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions
-
@adamjbradley as a note from the future, does this include "candle sticks" (medium frequency) or just only momentum (slow trades)?
Beta Was this translation helpful? Give feedback.