Download MetaTrader 5
To add comments, please log in or register
Have you discovered something really important? Write an article and receive 200 USD!
Yang
29
Yang 2014.07.18 15:17 

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.


Halley
198
Halley 2014.07.18 15:38  
I did not notice any change in the update behaviour, indicators and EAs run on my charts the same way they ran before.
whroeder1
13627
whroeder1 2014.07.19 11:30  
trader_yang: After checking I see there is no tick data coming on the offline chart
The data structures have changed since build 600. Are you using an updated generator?
Yang
29
Yang 2014.07.21 09:37  
WHRoeder:
trader_yang: After checking I see there is no tick data coming on the offline chart
The data structures have changed since build 600. Are you using an updated generator?

Thank you for your reply.

Maybe I was not clear before. I re-explain myself:
I would like to make another EA to work on the offline chart. But the EA added to the offline chart never gets its functions Start() or onTick() called.

Can you please help me or give me any advice on how to make an EA work on the offline chart?

By the way I am using MT4 build 670.

whroeder1
13627
whroeder1 2014.07.21 15:19  
trader_yang: Can you please help me or give me any advice on how to make an EA work on the offline chart?
Yes. NOTHING. It works on an offline chart just like a normal chart.
It is the GENERATOR, that must trigger the update.
Now answer my original question:
The data structures have changed since build 600. Are you using an updated generator?
Kok How Yap
179
Kok How Yap 2014.08.12 10:34  

Hi,


I have the same problem too.

I am running on version 670 and my offline chart is just not moving/ticking at all.

Does anyone have a solution on that?

Thank you.

eyalgiga
5
eyalgiga 2014.11.13 07:50  

Hi

So, it was not resolved yet.

Is there any way to make onTick() function to work on offline chart?

Who can answer???

davidb012
64
davidb012 2014.12.03 17:24  
eyalgiga:

Hi

So, it was not resolved yet.

Is there any way to make onTick() function to work on offline chart?

Who can answer???

 

 

I agree that there is clearly an issue with offline charts. Certainly there is an issue with ver 745.

If you use the new provided script for PeriodConverter, you will find that any EA's attached to the offline chart, will not work - e.g., no trades opened.

The EA will work on say a 1min chart, but try on a 3min offline, and it won't.

Everything was okay with version 711 

davidb012
64
davidb012 2014.12.03 19:38  
davidb_012:

I agree that there is clearly an issue with offline charts. Certainly there is an issue with ver 745.

If you use the new provided script for PeriodConverter, you will find that any EA's attached to the offline chart, will not work - e.g., no trades opened.

The EA will work on say a 1min chart, but try on a 3min offline, and it won't.

Everything was okay with version 711 

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.

AutoAbacus
24
AutoAbacus 2015.01.06 19:51  
eyalgiga:

Hi

So, it was not resolved yet.

Is there any way to make onTick() function to work on offline chart?

Who can answer???

 

 

The solution is given here:  https://www.mql5.com/en/forum/151268

Basically it is the old MT4 method of generating a fake tick with the RegisterWindowMessageA() call changed to RegisterWindowMessageW() because of the change in B600+ from Ansi to Unicode strings.

/
To add comments, please log in or register