Indicator delay ?

 

It seems buy and sell orders come 1 minute after indicator singals them in the EA.

I am using opening price as model. What could be the reason for the delay ?

Thank you

 

This is the code.

It is an EA I got from code base.

It delays. How come ?

Files:
simplefx2.mq4  14 kb