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
Found a "confusion".
Why doesn't the compiler like the define of the second b variable?
And in general, how do I handle this situation?
It doesn't like the define.
It just writes another error - wrong variable type for the array dimension
You can only specify constants in dimensions
it's not the define that he doesn't like.
It also writes another error - wrong variable type for the array dimension
Only constants may be specified in dimensions
Constants won't work either, there will be an error:
Access specifiers
Access specifiers tell the compiler how to access variables, members of structures or classes.
Theconstspecifier declares a variable to be a constant and does not allow this variable's value to be changed in the process of program execution. It is allowed to initialize a variable once when declaring it.
I meant only two options
int Arr[100]
or
#define r 100
int Arr[r]
For the rest ArrayResize
I don't get it. I put an EA on the chart and this message appears in the "Experts" tab. The Expert Advisor continues its work anyway. This is not an error, but a warning. A warning about what?
constants won't work either, there will be an error:
Access specifiers
Access specifiers tell the compiler how to access variables, members of structures or classes.
Theconstspecifier declares a variable to be a constant, and does not allow this variable's value to be changed in the process of program execution. It is allowed to initialize a variable once when declaring it.
A constant variable is not a constant! It is allowed to be initialized once, i.e., it is a variable for which memory is allocated.
The task of the constants is to be calculated and inserted into the code without occupying the memory at runtime.
The constant will be const AA=11.
Therefore the compiler will get sworn. If const AA=11, it won't complain.
Can you tell me what the problem is?
On the last interval in ChannelPeriod = 100; there is a sharp shift upwards in the indicator readings, going beyond the last 100 bars everything shows normally.
Does anyone know how to fix it?
Please give me a direct link where you can download textbooks in PDF format because my phone browser can't see everything on the website.