[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 176
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
Please explain the difference between these two variable definitions (at the beginning, before init()):
и
Thank you!
Please explain the difference between these two variable definitions (at the beginning, before init()):
и
Thank you!
double x1[100000];
is a declaration of an array of 100000 elements
double x1[];
is to commit an array with an unspecified number of elements, which is then set in init
double x1[100000];
is a declaration of an array of 100000 elements
double x1[];
The default value is to bind an array with an unspecified number of elements, which is then defined in init.
I want to clarify a question - when I set an array like "[]" (without specifying the number of elements),
and then tried to make any operations with the array, the Indicators simply didn't work. Then it became
"automatic" - if Indicator contains arrays and doesn't work (zero values) =>
it's necessary to add a number to array definition, for example 100000, and this problem disappeared.
Is this how it should be?
Thank you
>> Is that how it should be?
Yes, except for indicator arrays which do not require dimensioning.
..The only "BUT" in the tester to check the work of the indicator does not work, for some reason it does not change in the properties of the horizontal lines, prescribed in the description of Buy and Sell. I have to wait for Monday, when the bidding starts.
Why? Try it in visual mode. (Check the box in Visualization)
It seems to change the properties of the lines.
Yes, except for indicator arrays, which don't need to specify the dimensionality.
As far as I understand, you can set 100000 in all cases to be sure?
As far as I understand, you can set 100000 in all cases to be sure?
You have to set as many as you need... ...so that you can loop it... if you have to...