Code was updated at post #414379.

It is producing signals which I am not expect to see.
Where is wrong?

I only enter 15min MACD cross when 30,60 and 240 MACD are in the same direction.
It enters or closes trades every 15min from the log.

Thanks in advance.