Carl Schreiber:
I guess the MQLInfoInteger with MQL_PROGRAM_TYPE is what you look for.
Hi,
Am I correct, that there is no function or system-variable that tells a class whether it is called by an indicator, expert or a script?
Thanks - didn't know that!
It's a bit confusing, some information you get by __FILE__, __FUNCTION__, .. some like WindowsExpertName() and some by the function: MQLInfoInteger().
Its obviously an indication for a developing system.. ;)
Carl Schreiber:
Not really, __FILE__ __FUNCTION__ are carry overs from the C pre-processor. Anything else is MT stuff that should be accessed by Info functions at runtime
Thanks - didn't know that!
It's a bit confusing, some information you get by __FILE__, __FUNCTION__, .. some like WindowsExpertName() and some by the function: MQLInfoInteger().
Its obviously an indication for a developing system.. ;)
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,
Am I correct, that there is no function or system-variable that tells a class whether it is called by an indicator, expert or a script?