Download MetaTrader 5

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

To add comments, please log in or register
cyberglassed
613
cyberglassed  

Hello folks,

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


Thanks in advance, Cyberglassed.

cyberglassed
613
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
Alain Verleyen
Moderator
33281
Alain Verleyen  
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);
To add comments, please log in or register