Return Expert File Name

 

Is there any fuction to return the expert file name?


For MQL4 there is WindowExpertName() function, but I didn't find anything for MQL5.

 
Guilherme Mendonca :

Is there any fuction to return the expert file name?

For MQL4 there is WindowExpertName () function, but I didn't find anything for MQL5.

See here: Migrating from MQL4 to MQL5 article

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • www.mql5.com
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.
 
Vladimir Karputov #:

See here: Migrating from MQL4 to MQL5 article

 Thanks my friend.


string MQLInfoString(MQL5_PROGRAM_NAME)


I don't know why sometimes the "search engine" do not find what we seeking.

I searched with a lot of diferente terms, opened at least 30 pages about this subject but did not found anything.

 
Guilherme Mendonca #:
string MQLInfoString(MQL5_PROGRAM_NAME)

The article is wrong. It should be

string MQLInfoString(MQL_PROGRAM_NAME)
 
Keith Watford #:

The article is wrong. It should be

Yeah. You're right.

There is no "5", just "MQL_PROGRAM_NAME".

 

I use

__FILE__

Name of the currently compiled file