MQL4 Reference Chart Operations WindowExpertName

MQL4 Help as One File:

WindowExpertName

Returns the name of the executed Expert Advisor, script, custom indicator, or library.

string  WindowExpertName();

Parameters

None.

Returned value

The name of the executed Expert Advisor, script, custom indicator, or library, depending on the MQL4 program, from which this function has been called.

Example:

  string name=WindowExpertName();
  GlobalVariablesDeleteAll(name);