The problem is the indicator itself. Although we humans see lines moving up and down, the bot doesn't 'see' them, but price values. I never work with that indicator. You are requesting the EA to find when a price crossed an 'artificial' line that can be modified as new candles are appearing. That makes it very unreliable. Are you sure you need it?