Hi,
I am trying to create my first indicator. I copied an indicator from the MQL4 book (see below). This indicator compiles without any errors. However, when I remove the string "//" from this file, I get this error:
(1,1) : error 356: event handling function not found
How is it possible for an mql4 file to not compile if comment characters are deleted?
Might this be an encoding problem?
O.k. It is attached to this post.
Yes, I am talking about removing this.
Maybe the problem is that I compile the file with mql.exe (build 916).
Unfortunately using a graphical program such as Metaeditor is not an option for me. I do not create and compile mql4 programs manually.
Maybe you can say this from the start, so we don't have to lost time.
Which editor and encoding are you using ?
Maybe you can say this from the start, so we don't have to lost time.
Which editor and encoding are you using ?
Sorry for not being more specific. I was expecting that mql.exe would behave in the same way as Metaeditor.
In the program I am developing I do not use an editor. The program creates the indicator and ea files with encoding ascii.
I just found out the source of my problems: I created my sample programs with Emacs under cygwin. The encoding (ascii) wasn't the problem. The problem was the that Emacs does not add a \r at the and of lines, but only a \n. And, obviously, mql.exe does not understand \n as "end of line".
Thanks for you help.
By the way: Will mql.exe be available in the future? Without it or some alternative non-graphical program, it would be very difficult for me to continue my project.
Why not using MetaEditor?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am trying to create my first indicator. I copied an indicator from the MQL4 book (see below). This indicator compiles without any errors. However, when I remove the string "//" from this file, I get this error:
(1,1) : error 356: event handling function not found
How is it possible for an mql4 file to not compile if comment characters are deleted?
Might this be an encoding problem?