MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Window functions  WindowExpertName

 
string WindowExpertName( )
Returns name of the executed expert, script, custom indicator, or library, depending on the MQL4 program, from which this function has been called.
Sample:
string name=WindowExpertName();
GlobalVariablesDeleteAll(name);