Problem with TrendCCI - no alerts when signal line crosses the zero level

 

Hey guys!


I've added an alert in this TrendCCI so, as an example, each time the TrendCCI is bullish and the EntryCCI crosses the zero level from above I get an alert for bullish re-entries only, and each time the TrendCCI is bearish and the EntryCCI crosses the zero level from below I get an alert for bearish re-entries only. The alerts when the TrendCCI itself crosses the zero level are still active.


The problem is that I don't get all the EntryCCI alerts even though there has been a cross on the zero line. On some pairs, the alerts are triggered, and on others they are not. If I want the EntryCCI alerts to work again, I have to restart MT4... the TrendCCI alerts work fine though.


Do you have an idea why I might have this problem? Maybe the code is not optimal or some script that I use interferes with it? I've attached the indicator if you want to take a look at it.


Thanks a lot!