You should not be assigning it to a globally scoped variable declaration in the first place.
When the program first starts, there is no guarantee that market information will be available at all.
You should only be reading that information, once you know it is available, for example after the first tick has arrived.
And for OrderSymbol() you need to select the order before using it
Now it makes sense.
Thank you much.

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
Hi;
I am curious to know: presuming I have a global variable assigned the value of Symbol().
Which expression (see below) would be better to use and what are the differences?
Thank you.