Compilation troubles with global variables

 
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
 
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??
 

You can also do Ctrl+Alt+M.

 
ronhoddo: Trying to define a to be set at a global variable perdefined value in init().

  1. Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. if you define in "in init()" then it's not "a global variable"
Reason: