Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 727
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
Thank you all!
What's the big deal?
Yeah, that's what I thought too, when I wrote it on my own. And when I inserted into void OnStart() of the script and got exit outside the array in the log, I came to such a conclusion. In your example, int start() is an old version of the script without #property strict.
And without #property strict this is what it outputs.
And it's best not to go beyond.
Here:
0 error(s), 0 warning(s) 1 1
Let's say I run an EA, then on the first tick using Bid, the EA has to remember this price to a certain point, maybe for a day, maybe for an hour.
What can be used to remember this price?
And in your example int start()
I don't know why. (would like to know) why, but in 634 build, as well as in 711, int start() and without #property strict gives 0 values in the whole array if you declare an array without specifying its size...
And it's best not to go beyond.
Here:
0 error(s), 0 warning(s) 1 1
I don't know why. (would like to know) why, but in 634 build, as well as in 711, in int start() and without #property strict it gives 0 values in the whole array if you declare an array without specifying its size...
Let's say I run the Expert Advisor, then on the first tick using Bid, the Expert Advisor has to remember this price to a certain point, maybe for a day, maybe for an hour.
With what can I memorize it?
There is no trick. If you want to remember the value and not change it for some time, you should specify the condition
If(event) assign some value to a variable or array item.
In this case, the variable or array must be declared as a global variable, or static.