Volume function

 

Hi,

int start()
{
Alert(iVolume(NULL,1,0));
return(0);
}

This simple code will print number of ticks on the current M1 Bar in a box near the chart.

It works fine when I attach the ea to any chart

However when I run it as a backtest with "Every tick" it prints huge numbers like 38654705672 in the journal instead of printing the correct values.


 Any idea why ?


Thanks fot looking.

 

Don't double post please. Other topic removed.