Indicators: Simple tick data collector

 

Simple tick data collector:

A simple tick data collector written in MQL4 for you to collect tick data on any symbol you choose.

Author: Lin Xie

 

Hi,

Thanks for the code. It works very well.


Thank you.

 

hi linx,

it works fine. however, it would be great if the collection was noneperiodic ask and bid style (real tick by tick)

(Please excuse me for i'm new at mql. i don't know if it is possible to create a such a code)

tnx

 

Hi,

i've written an example about my previous comment.

if (handle>0) {
      FileWrite(handle, 
            TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS),
            GetTickCount(), 
            Ask, 
            Bid
      );

here, GetTickCount and TimeCurrent have different time sources. but i think, this way, the tick data can be more useful for high frequency data analysis. it's more precise.

thanks again for the opinion...

 

Hello,

datatime (should be datetime) is not accurate enough

It will be much better if you could get milliseconds unix timestamp.

Kind regards

Reason: