Input tab missing when expert advisor is placed on a chart

Back to topics list To post a new topic, please log in or register
avatar
57
7325453863 2016.06.27 23:08
 
This problem came with build 971. When I place expert advisor on a chart and then check for expert properties, input tab is not there at all. It does not happen all the time. Sometime input tab is there.
avatar
1215
FMIC 2016.06.28 00:19 #
 
That means that you EA exited due to invalid conditions. Check the Expert and Journal log files for information about why your EA exited prematurely.
avatar
57
7325453863 2016.06.28 01:13 #
 

Thanks for the reply but ea compiles with zero errors and there is absolutely no error message in the journal. All it says is that ea was loaded successfully.

I have been running this ea for years and never saw the problem I am seeing now.

avatar
1215
FMIC 2016.06.28 01:20 #
 
7325453863:

Thanks for the reply but ea compiles with zero errors and there is absolutely no error message in the journal. All it says is that ea was loaded successfully.

I have been running this ea for years and never saw the problem I am seeing now.

I did not say that it had compile errors. I said that it exited due to invalid conditions. In other words, it only runs the "OnInit()" event handler and then exits with either a "INIT_FAILED" or a "INIT_PARAMETERS_INCORRECT".

You must check both the "Experts" and "Journal" logs for clues to what is happening. If necessary, add debugging "Prints()" in the "OnInit()" function to see why the problem is occurring.

Build 970/971 has a few new changes, so check which ones may be affecting your code execution.

avatar
57
7325453863 2016.06.28 01:50 #
 

Ok. There is no error message in exxperts tab either. Why would ea still show smiley face if ea has stopped working. But I agree with one thing.

There must be something I am doing in INIT function that may not be compatible with the recent changes in 971.

Right now I get around by removing the chart where I am having problem and reopening the chart and then try to place the ea. Sometime it works sometime it does not. (by the  way I place identical ea on each one of charts).

For time being I have ea running on each one of my 10 charts.


There is no OnInit() event in mql4. I think it is applicable to mql5.


Thanks a lot. Hopefully with next version my problem will go away. Metaquote would like to get rid of all mql4 users and I do not why.

avatar
736
honest_knave 2016.06.28 02:08 #
 
7325453863:

There is no OnInit() event in mql4. I think it is applicable to mql5.

I think you might have some catching up to do on post Build 600.

This might be a good place to start: https://docs.mql4.com/mql4changes

avatar
1215
FMIC 2016.06.28 02:12 #
 
7325453863:

Ok. There is no error message in exxperts tab either. Why would ea still show smiley face if ea has stopped working. But I agree with one thing.

There must be something I am doing in INIT function that may not be compatible with the recent changes in 971.

Right now I get around by removing the chart where I am having problem and reopening the chart and then try to place the ea. Sometime it works sometime it does not. (by the  way I place identical ea on each one of charts).

For time being I have ea running on each one of my 10 charts

There is no OnInit() event in mql4. I think it is applicable to mql5.

Thanks a lot. Hopefully with next version my problem will go away. Metaquote would like to get rid of all mql4 users and I do not why.

Yes, there is a "OnInit()" event in MQL4 and it has been around since build 600+. If you are not using it, then that means your code is quite old and is using the old format of "init()", "start()" instead of the newer "OnInit()" and "OnTick()" formats.

You need to update your code in order for it to be more compatible with newer versions and builds, otherwise your EA will end up been incompatible (if it isn't already) and not running at all.

Back to topics list  

To add comments, please log in or register