Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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:
The worst way I thought is: to compare if ( previous_tickvol == tickvol) ;/
thanks !