Metatrader known bugs ... - page 75

myname
3231
myname  
forexyahoo:
When an EA is applied to a chart and if MT4 is restarted then the EA doesn't seem to get initialized and in my particular case, I get a divide by zero message in Experts tab when an entry signal is generated.

However, when the EA is on the chart and if MT4 is restarted, if I were to click on the EA properties and click "OK" then the EA gets initialized and I don't get a divide by zero message when an entry signal is generated.

Is there code that can be inserted into the EA so that it forces it to initialize after an MT4 restart?

To clarify, after the MT4 restart, the Experts tab (does) show that the EA was initialized however, something is still wrong because things only work correct after going to the EA properties and then clicking "OK" to re-initialize.

Do you get any error messages when you switch your code to strict?

madopter
529
madopter  
nbtrading:
Do you get any error messages when you switch your code to strict?

Hi nbtrading, didn't code it to strict. It was a simple fix. Got it working, for now.

Ovo
472
Ovo  

This time my code did not compile with the Metaeditor 1026 update, again.

So far the enumerations got casted to the int type implicitly. But it is no longer true, now they generate

"ambiguous call to overloaded function"compile error if there are more overloaded functions (e.g. one with int parameter, the other with long parameter).

test
1232
test  

As usual new errors surfacing : they still did not solve the issues when the code is first started. Not after a whole 1.5 year

Ovo
472
Ovo  
checkin:
As usual new errors surfacing : they still did not solve the issues when the code is first started. Not after a whole 1.5 year

Well, they claim they fixed something in the new release. I have no energy left for re-testing it with every new release, when there is a new release every week.

But I do not understand the reason for removing the implicit cast of enumerations to int, which requires fixes everywhere in all my code after a year.

EDIT:

I just realized it was not only enumerations. I am getting the "ambiguous call" error for other types, too.

Rolling back this build.

techmac
2973
techmac  
Ovo:
Well, they claim they fixed something in the new release. I have no energy left for re-testing it with every new release, when there is a new release every week.

But I do not understand the reason for removing the implicit cast of enumerations to int, which requires fixes everywhere in all my code after a year.

EDIT:

I just realized it was not only enumerations. I am getting the "ambiguous call" error for other types, too.

Rolling back this build.

Same old story - seems like they will never learn

test
1232
test  

Build 765 : ChartGetInteger(0, CHART_HEIGHT_IN_PIXELS,...) returns wrong values

test
1232
test  

Problems with some resources types when used in indicators and then called from an EA

Ovo
472
Ovo  
checkin:
Problems with some resources types when used in indicators and then called from an EA

I checked the related post in the Russian part, and it looked like adding the indicator as a resource to an EA did work (somehow)...

When I checked this feature some time ago, it did not even compile.

techmac
2973
techmac  

For some reason when using metatrader in portable mode it downloads much less history data from the server (in regular mode it download to 2009, in portable only to 2012)