Converting an array index value into a variable?
Please insert the code correctly: when editing a message, press the button
and paste your code into the pop-up window. (The first time I corrected your message)
You agree to website policy and terms of use
Hi, I'm just learning MQL5 and I have a question that has got me stuck.
I'm trying to write a basic script that adds up all of the price values within an array
I'm sure I have completely botched it.
However what I want is to get the data from index 0-10 and add them together by using a for loop on pricedata[x] where x is x + x++ and then extract the data for each value of x.
Would appreciate the help.