OnTick() called after a real market transaction only

 

Hi, guys!

Im new on MQL5 and also new at this Forum ( my 1st question :D ).


I've noticed that my OnTick() is called on every change ( bid / ask).

But I'd like to call it only when the close price or tickvolume change, after a real transaction from the market..

Is there a way or even another event to use?

On the example below, OnTick was called 4 times, but I need to call it only once, because there was just 1 transaction:

bid close ask tick vol
107450 107450 107465 194
107450 107450 107460 194
107450 107450 107465 194
107455 107455 107465 195


The worst way I thought is: to compare if ( previous_tickvol == tickvol) ;/


thanks !

Reason: