[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 457
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
exactly
I modified the script a little bit:
The result is as follows:
A question naturally arose: In this case I copied data of bars in the current chart into a two-dimensional array array1 using the ArrayCopyRates(array1) function. Then in the next line with function ArrayCopy(array2,array1,0,0,WHOLE_ARRAY) I copied data of array1 into array2. Then, using the ArrayGetAsSeries function, I checked whether array2 is an array-timeseries. And it turned out (as you can see from the screenshot), that the array is a timeseries array, although I hadn't "processed" it with ArraySetAsSeries function before.
Question: why in the first case (previous question) I needed to use ArraySetAsSeries function (to make my array be organized as a timeseries array), while in this case I don't need such processing.
P.S. Sorry for the insistence, I just want to understand it completely, so that no "gaps in history" are left. Thanks for all the previous replies.
I've changed the script a little bit:
Immediately a question. Why is the array two-dimensional?
I mean, why did I decide to copy exactly into a two-dimensional array...? I just experimented with the functions given in the Documentation in the Array Functions section. Since I've used almost all (or almost all) functions of that section with almost the same algorithm (to understand what works and how), I've compared results returned by ArrayGetAsSeries function when copying into one- and two-dimensional arrays, and saw the difference. Since I was unable to understand the reason for such a difference, I asked the following question
how to stop an advisor working?
Are you sure that using functions "out of order" you will understand something you need?
Honestly:
1. At this stage I am not sure about anything at all (I am just trying to figure it out), because if I were sure, I would not be asking questions
2. I don't fully understand the question: what does "not intended" mean? The description of the ArrayGetAsSeries function doesn't list functions to which it can or cannot be applied. So I concluded that there's nothing wrong with applying the ArrayGetAsSeries function to a two-dimensional array.
Honestly:
1. At this stage I am not sure about anything at all (I am just trying to figure it out), because if I were sure, I would not be asking questions
2. I don't fully understand the question: what does "not intended" mean? The description of the ArrayGetAsSeries function doesn't list functions to which it can or cannot be applied. So I concluded that there's nothing wrong with applying the ArrayGetAsSeries function to a two-dimensional array.
Of course, there's nothing wrong with it. Here is the description:
Returns TRUE if array is organized as timeseries(array elements are indexed from last to first), otherwise returns FALSE.
Input parameter is an array. One dimensional
Of course you don't. Look at the description:
Returns TRUE if array is organized as timeseries (array elements are indexed from last to first), otherwise returns FALSE.
Input parameter is an array. One dimensional
Maybe I'm looking in the wrong place: https://docs.mql4.com/ru/array/ArrayGetAsSeries? Not here (that the array is exactly one-dimensional)
how to stop an advisor working?