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
Nope, why not just declare the array ?
Liam's term 'pointer' may not be a term in MQL4 BUT ;) Liam's term 'pointer' universally makes sense if a person(s) codes in different languages. Anyhow, thanks to Liam for his helpful post.
Ah, yep, seems a cycle would play it's part just nicely to locate an index. I can't think of a more applicable use than a cycle. Greatly appreciated Simon.
Thank you
A vector has quantity, direction and mass. Arrays store vectors. I guess when it all boils down, a vector can have any data-type, assuming the quantity has direction and mass.
A vector typically has a usual data-type of double or integer. It's all just more ways to crunch numbers.
Vector in the C++ standard libarary is a array wrapper. Maybe what he's use to. vector - C++ Reference
Ah I see, dynamic arrays, but this is not mql4.
Simon, I'm not trying to confuse you by using terminology outside MQL4. I assumed you understood what I meant BUT ;) in this case, I assumed too much. It seems William has introduced you to what I believe defines the term vector according to C++ lingo. I believe there's multiple uses of the term vector but generally speaking, a vector is typically referred to as an object possessing quantity, direction and mass. Arrays can store values of a vector.
What say you to this, Simon?
Also, thank you William for your interpretation of C++'s meaning of the term vector. Thank you
Thank you