Just wanted to add on Filter's comment:
Your program will use the local struct within OnTick(), and will use the global one anywhere else.
Here is some information about variable scope:
https://www.mql5.com/en/docs/basis/variables/variable_scope

Documentation on MQL5: Language Basics / Variables / Visibility Scope and Lifetime of Variables
- www.mql5.com
Language Basics / Variables / Visibility Scope and Lifetime of Variables - Reference on algorithmic/automated trading language for MetaTrader 5

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'm trying to open an order but I'm getting this warning:
How can I solve this?
This is my code: