look in your reference for:
__FILE__
gooly: look in your reference for: __FILE__ | I keep forgetting about the new stuff. Predefined Macro Substitutions - MQL4 Documentation |
gooly:
thank you so so much .both working!!look in your reference for:
WHRoeder:
both "__FILE__" and WindowExpertName() are working!! thank you !
gooly: look in your reference for: __FILE__ | I keep forgetting about the new stuff. Predefined Macro Substitutions - MQL4 Documentation |
There is a difference between __FILE__ and WindowExpertName():
__FILE__ is a predefined Macro Substitution, which saves the name of the file when it is getting compiled (the .mq4 file name, without its extension).
WindowExpertName() is a function which returns the name of the executable file (.ex4), without its extension.
If at some point, you change the name of the executable but used __FILE__ in your code, the result will not change accordingly.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hello guys.
I have a indicator in main windows. Is that possible to get the indicator-file-name in the "indicator" dir?
I can only get the shortname of the indicator using "ChartIndicatorName()".
but the shortname is not equal to the filename...
confusing ...