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
Here is a test indicator.
There are two data arrays. One is set as a series, the other, not.
Both data arrays are filled with the same data. The values are bar closing price.
Then, iMAOnArray is taken on each data array
The result is a 10 period moving average of closing price
Thank you.
Note which method in the test gives a valid moving average line, and how it is acheived.
Thanks
Is it possible to have an array within an array? In other words, let us say that we have put RSI data in an array. We want to run an MA on this RSIarray. But then we want to store this data in a second array, MAofRSIarray, and run a further function, such as Momentum, on this MAofRSIarray. In the end, we will then have MomentumofMAofRSIArray. Obviously we need to use iMAonArray and iMomentumonarray in combination.
Can this be done, and if so, how?
47steps
array[5][11][7] for example, 3 dimensios..
5 elements, 11 wide, each of which is somehow 7 deep
"Arrays are allowed to be maximum four-dimensional. Each dimension is indexed from 0 to dimension size-1."