Download MetaTrader 5

Volume function

To add comments, please log in or register
marsupilami
58
marsupilami  

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.

Alain Verleyen
Moderator
35039
Alain Verleyen  

Don't double post please. Other topic removed.

To add comments, please log in or register