I'm new to this.. Trying to define a to be set at a global variable perdefined value in init(). If I place it within the {} all references to it compile errors as undefined. If I place it outside of the {} I get a "; is expected" at the declaration of the variable. Result no compilation of the EA thus Fustration to me. Any help would be appreciated..Ron
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- How to set variables by currency symbol value - what's wrong with this code?
- array size declarator won't compile
Insert the piece of code you're having problems with using the SRC button.
Start here => https://book.mql4.com/operators/assign
read, try, fail, read, understand, try, succeed!
ubzen:
Insert the piece of code you're having problems with using the SRC button.
Sorry I am New "SCR button". What is it??
Insert the piece of code you're having problems with using the SRC button.
ronhoddo: Trying to define a to be set at a global variable perdefined value in init().
Play videoPlease edit your post.
For large amounts of code, attach it.- if you define in "in init()" then it's not "a global variable"

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