Excuse me:How to calculate the volume of the last two on the Tick?

To add comments, please log in or register
wxn2014
119
wxn2014  

void OnTick()
 
{
       prevolume=curvolume; 
       curvolume = SymbolInfoDouble(_Symbol,SYMBOL_SESSION_VOLUME);
       Print(curvolume-prevolume);
     

)


I use the above method, print out is zero, the result of the method error? How to calculate the difference of two Tick volume?

Sergey Golubev
Moderator
106036
Sergey Golubev  

Forum on trading, automated trading systems and testing trading strategies

When you post code please use the CODE button (Alt-S)!

Use the CODE button

Thank you.

wxn2014
119
wxn2014  
Sergey Golubev:
ok
To add comments, please log in or register