Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Benny Addams: Others though always throw the compile error -undeclared identifier. I'm assuming that i have something wrong with programmatic flow.
Please identify which line and character position is being identified as a compile error.
Please note that you have an extra space between the dot and method name in the line marked in red.
int OnInit () { cTrade. SetExpertMagicNumber(Magic); double doesnMatter = 0; string myValue = EAname; //to be persisted forever datetime w = GlobalVariableSet("MyVar " + myValue, doesnMatter); return (INIT_SUCCEEDED); }
Fernando Carreiro #:
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Sure will do there is just so much noise and things are not really labelled correctly it seems.
Thank you for the response.
I found an easy fix to this and some other problems i was having with variables not being visible from the main .mq5 file in an included file either .mqh or .mq5.
Place your #include statement at the bottom of the main file and all variables and functions will be visible COMPUTED in the include file
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
I have some functions in a script file some of which are visible and callable from within the same script.
Others though always throw the compile error -undeclared identifier.
I'm assuming that i have something wrong with programmatic flow.
Any help would be appreciated - the Copy File Function is not working either.
Here is me setting Global Variable in main.mq5 file
Here is full code of script -please see comment next to string "en" and function at end of code.