there is no bug. described bug is feature. You've described ;-)
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
Well, here's the (possible) first for build 137... If the following piece of code is run, the output is as follows:
string splitArray[];
Print("ArraySize: " + ArraySize(splitArray));
Print("splitArray(0): " + splitArray[0]);
return(0);
==============
testie USDJPY,H1: ArraySize: 1
23:28:50 testie USDJPY,H1: index 0 is out of range [0-0]
23:28:50 testie USDJPY,H1: not initialized string in array
23:28:50 testie USDJPY,H1: not initialized string
23:28:50 testie USDJPY,H1: splitArray(0):
==================================
i.e. ArraySize = 1, even though the array hasn't been initialised yet or contains any elements.
Also, will there be a function developed that actually gives you the number of elements in an array? e.g.
if the statement 'string anyArray[5];' is run, ArraySize(anyArray), returns '5', even though the array hasn't been assigned any elements yet - i.e. anyArray[0] - anyArray[4] equal (NULL).