Hello, It seems that variable on is_long and is_short are no more populated when a filter is processed. If I need this information I just check the self.buy or self.sell?
is_long/is_short works after actually having an open position. You could do this:
is_long/is_short
if should_long(): # it's long else: # it's short
Ok, thanks, I thought it was something without calculate the condition again
This is the first thing I needed when I tried to use filters, to know which type of trade I'm going to filter. I think it's worth mentioning in the documentation.