Alert(array1[10]) equals to zero makes sense because at i = 20 it has not calculated the index 10 yet
for the other one i dunno it should work
-
Hi, does anyone know why Alert(array1[]) is showing values of 0? Even though LineBuffer1 is plotting the line correctly with values. Thanks
You typed your comments inside SRC block and made it non-SRCPlease edit your (original) post and use the CODE button (Alt-S)!
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor -
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
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