metamitsu:
Resize your array to create space, before trying yo set it's values.
I get the error when I try to get the value of the following code.
I thought the number of bars is not enough for this calculation, so
I tried to prevent this error by adding the condition such as " if (bars > limit + Inp_HighPeriod + Inp_LowPeriod) ".
However, it didn't work.
Now I have no idea what's wrong.
Please give me advice on this problem.
Any advice would be great helpful.
Nelson Wanyama:
Resize your array to create space, before trying yo set it's values.
Resize your array to create space, before trying yo set it's values.
Thank you. I added the following code and it worked.
ArrayResize(buf_Kairi,100,100);
ArrayResize(buf_Kairi_b,100,100);
Don't double post! You already had another thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19
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 get the error when I try to get the value of the following code.
buf_Kairi[i]=NormalizeDouble((High-Low)/Low,digit);
I thought the number of bars is not enough for this calculation, so
I tried to prevent this error by adding the condition such as " if (bars > limit + Inp_HighPeriod + Inp_LowPeriod) ".
However, it didn't work.
Now I have no idea what's wrong.
Please give me advice on this problem.
Any advice would be great helpful.