ticks (quaotations) per minute, tick count in last minute

To add comments, please log in or register
Forex Trader
114370
Forex Trader  
Hello, I need to count incoming ticks (quaotations) for euro/usd to measure market speed. I think it was possible with old MT3 API. How can it be possible in MQL4?

- 45 ticks arrived in last minute
- an indicator showing incoming tick count for all minutes.

Thanks

Cengiz
Forex Trader
114370
Forex Trader  
Hello, I need to count incoming ticks (quaotations) for euro/usd to measure market speed. I think it was possible with old MT3 API. How can it be possible in MQL4?

- 45 ticks arrived in last minute
- an indicator showing incoming tick count for all minutes.

Thanks

Cengiz


static int TickCount=0;
static datetime BarTime= 0;
if(Time[i]!=BarTime)
   {
   TickCount=0;
   BarTime= Time[i];
   }           
else
   TickCount++;



This should count ticks within current time frame.
-Stan

Ironhide83
18
Ironhide83  
don't need to use static  keyword i think ?
honest_knave
Moderator
2302
honest_knave  

Nearly 12 years, I think that is a record for thread resurrection! Certainly the first one I have seen mentioning MT3

Alain Verleyen
36058
Alain Verleyen  
honest_knave:

Nearly 12 years, I think that is a record for thread resurrection! Certainly the first one I have seen mentioning MT3

Pham Duy Duc
681
Pham Duy Duc  
we had MT3 ?!?!
To add comments, please log in or register