How to get by code the name of the current running script?

 

Hello folks,

I would like to know how to get by code the name of the current running script?


Thanks in advance, Cyberglassed.

 
cyberglassed:

Hello folks,

I would like to know how to get by code the name of the current running script?


Thanks in advance, Cyberglassed.

Ok, I got it:

using the constant: __FILE__

:)

Documentation on MQL5: Standard Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Standard Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
Standard Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions - Documentation on MQL5
 
cyberglassed:

Hello folks,

I would like to know how to get by code the name of the current running script?


Thanks in advance, Cyberglassed.


MQL5InfoInteger(MQL5_PROGRAM_NAME);
Reason: