double array[]; ArrayInitialize(array,0);The array has no size yet, you can't initialize it.
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, I am working on being able to input an array of values into a moving average function to be able to create an MA of any set of data basically.
But before I get to that point, I am trying to improve my knowledge of arrays as I feel under-developed.
I am simply trying to put the Ask value into an array to be able to call the ask for the current candle and the ask for the previous candle, but both values are coming back as 0.
Here is the code: