Announcement

Collapse
No announcement yet.

intraday data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • intraday data

    i have a problem in the start time and end time
    when i use the api it does not seem to work for example


    (*m_piHooks)->GetRequestHistory(eur a0-fx, 5,btBARS,
    50,960,570);



    what do i need to order to make it work ?

    it seem to take the last bars instaed of the start time
    and end time



    the problem is that it takes thae last 50 bars and it does not
    refer to the start time and end time for example


    this is the out put

    eur a0-fx 02/11/2005 5:35:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 5:40:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 5:45:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 5:50:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 5:55:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:00:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:05:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:10:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:15:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:20:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:25:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:30:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:35:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:40:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:45:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:50:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 6:55:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:00:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:05:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:10:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:15:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:20:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:25:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:30:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:35:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:40:00: 1.20 1.21 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:45:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:50:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 7:55:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:00:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:05:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:10:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:15:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:20:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:25:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:30:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:35:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:40:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:45:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:50:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 8:55:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:00:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:05:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:10:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:15:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:20:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:25:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:30:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:35:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00

    eur a0-fx 02/11/2005 9:40:00: 1.20 1.20 1.20 1.20 0.00 0.00 0.00



    it is not start from the start time and time and why do we need
    the numbver of bars
    Last edited by pauldeek1; 11-02-2005, 12:42 AM.

  • #2
    For 50 bars in 5 minute interval for yesterday from 9:30 to 4:

    (*m_piHooks)->GetRequestHistory(eur a0-fx, 5,btBARS,
    50,570,960);


    For getting intraday 5 minute interval bar from exchange open
    to exchange close today:

    Try:
    (*m_piHooks)->GetRequestHistory(eur a0-fx, 5,btDAYS,
    1,-1,-1);

    Anthony

    Comment

    Working...
    X