Is a Public Struct accessible from different charts?
Is the struct "forex" accessible from every chart in the profile on which the expert has been applied?
- Expert Advisors in different Profiles
- Initialize struct array
- How to hide my firends in my MQL5?
barando:
Is the struct "forex" accessible from every chart in the profile on which the expert has been applied?
Is the struct "forex" accessible from every chart in the profile on which the expert has been applied?
Your question doesn't make sense.
An expert is applied to a chart not a profile.
A struct or any code is never accessible to a chart. It's accessible to the code where it's defined and instantiated.
angevoyageur:
So, the struct is not accessible from the same code (ea) applied on another chart, right? I know that this is true for a basic variable, but i was experiencing some strange ea behavior and I wanted to be sure that is the same for struct variables.
Your question doesn't make sense.
An expert is applied to a chart not a profile.
A struct or any code is never accessible to a chart. It's accessible to the code where it's defined and instantiated.
barando:
So, the struct is not accessible from the same code (ea) applied on another chart, right? I know that this is true for a basic variable, but i was experiencing some strange ea behavior and I wanted to be sure that is the same for struct variables.
If you apply an EA to two different charts the EA runs twice - each with it own struct!
So, the struct is not accessible from the same code (ea) applied on another chart, right? I know that this is true for a basic variable, but i was experiencing some strange ea behavior and I wanted to be sure that is the same for struct variables.
gooly:
If you apply an EA to two different charts the EA runs twice - each with it own struct!
Ok thanks.
If you apply an EA to two different charts the EA runs twice - each with it own struct!