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

 

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?

 

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.

 
Sergey Golubev:
ok
Reason: