• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:51am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:51am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

What platform has tick by tick (multiple chart filling) data replay? 4 replies

Tick Size, Tick Rate, Tick Spread, and Tick Logger indicators 36 replies

Where can I find tick-by-tick data for various currency pairs? 9 replies

download data tick by tick ??? help 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Recording Tick Data by EA
Exit Attachments
Tags: Recording Tick Data by EA
Cancel

Recording Tick Data by EA

  • Post #1
  • Quote
  • First Post: Sep 2, 2010 6:08am Sep 2, 2010 6:08am
  •  Xlr8er
  • | Joined Feb 2010 | Status: Member | 81 Posts
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 !
  • Post #2
  • Quote
  • Sep 2, 2010 7:34am Sep 2, 2010 7:34am
  •  Xlr8er
  • | Joined Feb 2010 | Status: Member | 81 Posts
It would be nice if it printed the tick data , left a line , printed how many milliseconds it was on that tick , left another line ... and so on
 
 
  • Post #3
  • Quote
  • Sep 2, 2010 8:14am Sep 2, 2010 8:14am
  •  hotstorm
  • | Joined Jul 2007 | Status: Member | 148 Posts
Some time ago I needed to collect ticks so I wrote a simple EA that collects quotations of several currencies to CSV file under "files" directory of your MT4.

With some modifications you can make it doing what you need. It's my own code but I do not have time to modify it for you, so please ask someone else.
Attached File(s)
File Type: mq4 tick_collector.mq4   3 KB | 1,162 downloads
 
 
  • Post #4
  • Quote
  • Sep 2, 2010 9:08am Sep 2, 2010 9:08am
  •  Xlr8er
  • | Joined Feb 2010 | Status: Member | 81 Posts
Thank you very much for your help , I am sure I will manage. I just need to figure out how to measure the time between the ticks now !
 
 
  • Post #5
  • Quote
  • Sep 2, 2010 9:13am Sep 2, 2010 9:13am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 32 y/o Investor/Trader/Programmer | 5,016 Posts
Use GetTickCount()

"The GetTickCount() function retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer."

So basically.


static int LastTickMiliseconds = 0;
int MilisecondsBetweenTicks = 0;


if(RefreshRates())
{
MilisecondsBetweenTicks = GetTickCount() - LastTickMiliseconds;
LastTickMiliseconds = GetTickCount();
Print("The previous tick lasted "+LastTickMiliseconds+" miliseconds.");
}
 
 
  • Post #6
  • Quote
  • Last Post: Edited Nov 12, 2013 3:43am Nov 11, 2013 9:30am | Edited Nov 12, 2013 3:43am
  •  olympus999
  • | Additional Username | Joined Jan 2012 | 45 Posts
Old thread, but there are few good Tick Data Collectors. This one is easy to use, it creates a new file everyday for easier management.
PS! It is an Indicator
http://www.armadamarkets.com/experts/indicators/tickdatacollector.php
 
 
  • Platform Tech
  • /
  • Recording Tick Data by EA
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023