Why it works on EURJPY but not on EURGBP?

Here is code that works on EURJPY but does not generate a signal when applied to other symbols such as EURGBP. Help as to why.

Test your return values, check your log and then you might find out why . . . : What are Function return values ? How do I use them ?