MetaTrader 4 Build 600 with Updated MQL4 Language and Market of Applications Released - page 29

 

reply to myself:


for old mt4 code:

x = bool1 && bool2 && bool3 && bool4 || bool5; //old mt4 code

new code:

x = bool1 && bool2 && bool3 && (bool4 || bool5); //new mt4 code


OR had precedence, and lost this precedence.



 
danidan:
I tried compiling the EA

You only have to replace Tip.Fr.or.Candl by something like Tip_Fr_or_Candl.

The point "." is no more allowed in variable's name.

 
danidan:


I don't see a problem with this one. (forex-glaz_v8)
 
euclid:

"Terminal: Added display of subfolders and the structure of Expert Advisors, scripts and indicators in Navigator window"

I have found a problem with this feature (on build 604). If you have indicators in a subfolder, sometimes MT4 looks for them in the main folder.

e.g.

loading from the navigator window: 2014.02.09 13:36:42.347 Custom indicator b509\NewsCal-v107 EURUSD,M5: loaded successfully

loading via Insert>Indicators>Custom: 2014.02.09 13:50:33.851 Cannot open file 'C:\Program Files\MT4 Exchange\MQL4\indicators\NewsCal-v107.ex4' [2]

I've also seen indicators fail to load from a subfolder occasionally at start up.

If your indicator is localted in a subfolder, you have to indicate it's path within iCustom : iCutoms(NULL, 0, "b509\\NewsCal-v107",...).
 
angevoyageur:
If your indicator is localted in a subfolder, you have to indicate it's path within iCustom : iCutoms(NULL, 0, "b509\\NewsCal-v107",...).


Interesting, but I don't see the relevance to the issue.
 
cbalta:

reply to myself:


for old mt4 code:

x = bool1 && bool2 && bool3 && bool4 || bool5; //old mt4 code

new code:

x = bool1 && bool2 && bool3 && (bool4 || bool5); //new mt4 code


OR had precedence, and lost this precedence.


https://www.mql5.com/en/forum/149271/page24#905755

https://www.mql5.com/en/forum/149271/page12#904118

https://www.mql5.com/en/forum/148183

 
euclid:

Interesting, but not relevant to my post about problems loading indicators on a chart.
You are right, sorry, I misread your post. Can you report this to ServiceDesk (on mql5.com) or do you want I do it for you ?
 
szgy74: I copied myself a version of the build 509 to use for anything, debugging, or simply to maintain the mentioned 100% compatibility of
Try keeping 509 on flash-drive and dis-connected from broker. Heck, make it read-only if you have to ... never know how far mt4+ will hunt you down.
 
angevoyageur:

You only have to replace Tip.Fr.or.Candl by something like Tip_Fr_or_Candl.

The point "." is no more allowed in variable's name.



Yes, I did, but I do not appear in the list of experts
 
danidan:

Yes, I did, but I do not appear in the list of experts
Where did you copy your EA to ? what folder ?

What folder do you see when you click File > Open Data Folder ?