Maybe try splitting it:
intArrayElement++;
intCount[intArrayElement];
Take a look here: https://docs.mql4.com/basis/operations/mathoperation
The prefix increment (++i) and decrement (--k) are applied to the variable right before this variable is used in an expression.
Post-increment (a++) and post-decrement (k--) are applied to the variable right after this variable is used in an expression.
Thanks toast. But I figured it out; I typed it wrong. It's supposed to be: intCount[intArrayElement]++;
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
I'm getting this warning on this line of code:
intCount[intArrayElement++];
Now, I know this gives me the desired affect; it worked in prior builds of MT4. I'm just using an array to count the number of instances of patterns.
It's just a warning, but an odd one. Why?