Problem with debugin volume

 
hey guys,

I need help with my EA debug code to see the volume. I'm programming with the following code and the volume is not reflected in the journal tab of the EA:

  if (debug) {Print ("SV", sv1, "BV", BV1, "P1", Ask, "P2", Bid, "V", Volume);}

I dont know where is the error

 

Waiting for your comments 

Thanks, 

 
AAMD:
hey guys,

I need help with my EA debug code to see the volume. I'm programming with the following code and the volume is not reflected in the journal tab of the EA:

  if (debug) {Print ("SV", sv1, "BV", BV1, "P1", Ask, "P2", Bid, "V", Volume);}

I dont know where is the error

 

Waiting for your comments 

Thanks, 

Print statement are logged in the Experts tab, not Journal.
And Volume is an array, use it as : Volume[index]

 

you mean like this?

 if (debug) { Print("SV:", sv1, ",BV:", bv1, ",P1:", Ask,",P2:", Bid,",V:", Volume[index]); }

 
AAMD:

you mean like this?

 if (debug) { Print("SV:", sv1, ",BV:", bv1, ",P1:", Ask,",P2:", Bid,",V:", Volume[index]); }

What bar number do you want the tick count ( volume ) for ?  if it is the number held in the variable index then yes it will work.
 
RaptorUK:
What bar number do you want the tick count ( volume ) for ?  if it is the number held in the variable index then yes it will work.


15M
 

I write this and is not working:

 if (debug) { Print("SV:", sv1, ",BV:", bv1, ",P1:", Ask,",P2:", Bid,",V:", Volume[15]); }

 

I fix it. Volume[0]

Thank you,