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:
# it's long
# 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.