GM2_MTWork: I have written a simple custom indicator and the code compiles without error or warnings. However, there is a Microsoft header file called "sal.h" in which there are two errors.
- '#pragma' - invalid preprocessor command sal.h 14 1
- '#endif' - unexpected tokensal.h1211
Given that I didn't write this ("sal.h") I am at a loss as to know a) why this has occurred and b) how to eliminate this error. Does MT4 use its own compiler or does it use a compiler than one has installed on the machine on which one is doing the code development. How is this set up?
Show your code! We cannot guess what is written there unless you show the code.
MT4 Uses its own editor/compiler called MetaEditor! It does not use any external compiler!
GM2_MTWork: However, there is a Microsoft header file called "sal.h" in which there are two errors.
So what? That is likely a C header file, not a MT5 header file. You can not include that and expect it to compile.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have written a simple custom indicator and the code compiles without error or warnings. However, there is a Microsoft header file called "sal.h" in which there are two errors.
1) '#pragma' - invalid preprocessor command sal.h 14 1
Given that I didn't write this ("sal.h") I am at a loss as to know a) why this has occurred and b) how to eliminate this error. Does MT4 use its own compiler or does it use a compiler than one has installed on the machine on which one is doing the code development. How is this set up?
thanks!!
GM2