Closed
Description
If I have a df column of True and False values, is there a way for this to trigger buy and sell instead of using indicators?
I would like to do something along the lines of the following:
def next(self):
if df['Entry'] == True:
self.buy()
elif df['Exit'] == True:
self.sell()
How can I convert a df column to your customized numpy arrays? I tried df.Entry.to_numpy() but this doesn't seem to be the correct format to do the iterative comparisons.
Thank you!