My indicator don't write the value of "volume[]"

 

Hi guys, I attach the file of my indicator.  If I tray to write the value of "volume[]", the log file display this error:

1 18:54:45.011 EstrazioneDati000 EURUSD,Weekly: array out of range in 'EstrazioneDati000.mq4' (98,239)

0 18:55:00.257 EstrazioneDati000 EURUSD,Weekly: uninit reason 1

When I don't use the value of "volume" my indicator is OK.

do you can help my please?

Thank you all.

Files:
 

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?

 
William Roeder:

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?

No, I don'h ask you for debug my code, but only tell me why index that is ok for tick_volume[] it is wrong for volume[]. Is this too for me?

 
80613536:

No, I don'h ask you for debug my code, but only tell me why index that is ok for tick_volume[] it is wrong for volume[]. Is this too for me?

  S there is an difference about tick volume and volume

on cfd you habe only tick volume

 
80613536: only tell me why index that is ok for

Understanding the why is called debugging. Get to work, we are not going to debug your code for you.