Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1012
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
Hello, could you please tell me if it's possible to convert the value of a text variable into the name of another variable. Or compare the text of a variable with the name of another variable.
Please try to keep your questions within this thread.
And read all the documentation carefully, you will remember that the function you need is there. All you have to do is find it. Here it is ArrayFree.
Thank you for your reply. TheArrayFree function is designed to work with dynamic arrays, as written in the documentation, and I asked about static arrays.
Static arrays reserve memory for themselves immediately, regardless of whether they contain data or not. If there is a need to free memory, then dynamic arrays should be used, not static ones.
When exiting a function, do dynamic arrays work as local variables or do you still need to use the ArrayFree function ?
If the array is declared locally, it does not need anything. But if the array data is used in different functions, then the array must be global, and then, before changing both array size and values, it is sometimes better to "delete" it and fill it again. Or, as in your question, if you think the array will no longer be used, nothing prevents you from getting rid of it.
Hello! In the line below I got the error"array out of range". Can you help make this line correct?
Hello! In the line below I got the error "array out of range". Can you help make this line correct?
High[] must contain an integer in square brackets [ ] - the index of the candle in the chart, while the result iHighest(NULL,PERIOD_M15,MODE_HIGH,1,1) - the maximum value of one candle with index 1 and it will be a real number of type double in 99,999...%. In general, such an entry by itself is not quite clear what it should do.
Will this work? "array out of range" will not cause errors?