TimeLine

 

Hello,

 I am looking for a way to ensure that my EA is running in a 15 Minute Chart because the tests I want to do is for a 15 minute time frame.

I found an example of the ma (ma.mq5) but all the comments are garbled, so if someone can please point me to a good example.

Thanks in Advance 

 
hvdalsen:

Hello,

 I am looking for a way to ensure that my EA is running in a 15 Minute Chart because the tests I want to do is for a 15 minute time frame.

I found an example of the ma (ma.mq5) but all the comments are garbled, so if someone can please point me to a good example.

Thanks in Advance 

   if (_Period!=PERIOD_M15) return(-1);
   
Reason: