i have the same problem. the problem is that strategy.entry uses pyramiding, meaning that long and short trades are considered as a whole by default, meaning reverse trading is active and therefore closing long trades when short signals occur.