Excuse me:How to calculate the volume of the last two on the Tick?
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Thank you.
Sergey Golubev:
ok
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Thank you.
You agree to website policy and terms of use
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?