Recording ticks to text file... :)

 

Hey there.

I was wondering if anyone knows how to get an EA to write each and every tick price to a text file (Easy).

But I would also like it to write to the text file exactly how many seconds the tick remained in that position before changing to the next (Tricky ?).

Thanks a lot !
Reason: