michealm:
Hello. Hope you are well. I am trying to use figures from a switch operator elsewhere in the program but i am having a hard time figuring out how to do it. To properly explain, here is part of the code:
Hello. Hope you are well. I am trying to use figures from a switch operator elsewhere in the program but i am having a hard time figuring out how to do it. To properly explain, here is part of the code:
The variables I am trying to use outside the switch operator are the datetime values. But when i try to use them, i get an "undeclared identifier" error. Do you know how I could go about it? Thanks in advance.
you have declared them locally so they will only be available inside the function where they are created.

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
- www.mql5.com
//| Expert initialization function | //| Expert deinitialization function | //| Expert tick function | //| test1 |...

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
The variables I am trying to use outside the switch operator are the datetime values. But when i try to use them, i get an "undeclared identifier" error. Do you know how I could go about it? Thanks in advance.