MQLInfoInteger(MQL_PROGRAM_TYPE);
![Running MQL4 Program Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference Running MQL4 Program Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference](https://c.mql5.com/36/13/running-mql4-program-properties.png)
Running MQL4 Program Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference
- docs.mql4.com
Running MQL4 Program Properties - Environment State - Standard Constants, Enumerations and Structures - MQL4 Reference
honest_knave:
THANKS!!!!!!!! p.s. in documentation there is not stated the returning values... I tested and 2 is for EA.
ENUM_PROGRAM_TYPE
Identifier | Description |
PROGRAM_SCRIPT | Script |
PROGRAM_EXPERT | Expert |
PROGRAM_INDICATOR | Indicator |
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi. I want to have a variable/code in my library, that will tell if current script (it is used in) is EA or INDICATOR...
what code can be used?