EA to run on offline chart MT4 - page 2

 
Yang:

Hello,

around one year ago I could make an EA work on an offline chart.

But now I see it's not working anymore.

After checking I see there is no tick data coming on the offline chart to trigger the EA to run start() function or onTick() function.

Maybe this feature has been changed since the release of the new MT4 platform recently?

Anyone knows how to make an EA run on offline chart?

Thanks.


You set run on OnTimer()

 
Nguyen Quan Thanh: You set run on OnTimer()

No. The offline chart generator sends update messages. The EA needs not be modified at all.

 
davidb012 #:


Thank you so much.

 
davidb012 #:

Looks like I may have solved it.

Going into properties on the Offline Chart, and unselect the Offline check box.

Trades are now being opened by the EA. This wasn't a requirement in the past, as all my other charts running on version 711, have the boxed checked and trades are opened.

Try it and see if it solves the problem.

Thanks that did it for me too! All the best. =)