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