Announcement

Collapse
No announcement yet.

intraday

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

  • intraday

    what is more dominent the number of bars or the the start time and the end time

    because from what i see there is no relation ship between the number of bars and the time


    the start time and end time never work

    for example

    handler= (*m_piHooks)->GetRequestHistory("EUR A0-FX","60",btBARS,50,570,960);
    Last edited by pauldeek1; 11-03-2005, 03:48 AM.

  • #2
    The behavior of the request:

    handler= (*m_piHooks)->GetRequestHistory("EUR A0-FX","60",btBARS,50,570,900);

    is correct. It is asking for 50 bars with 1 hour length from NOW.
    between the hour of 9:30 to 3:00 for each day we traced back.

    Here is the output:
    ...
    ...
    EUR A0-FX 11/2/2005 9:30:00 AM:
    EUR A0-FX 11/2/2005 10:30:00 AM:
    EUR A0-FX 11/2/2005 11:30:00 AM:
    EUR A0-FX 11/2/2005 12:30:00 PM:
    EUR A0-FX 11/2/2005 1:30:00 PM:
    EUR A0-FX 11/2/2005 2:30:00 PM:
    EUR A0-FX 11/3/2005 9:30:00 AM:

    if you do:
    handler= (*m_piHooks)->GetRequestHistory("EUR A0-FX","60",btBARS,50,570,960);

    Here is the output:
    ...
    ...
    EUR A0-FX 11/2/2005 9:30:00 AM:
    EUR A0-FX 11/2/2005 10:30:00 AM:
    EUR A0-FX 11/2/2005 11:30:00 AM:
    EUR A0-FX 11/2/2005 12:30:00 PM:
    EUR A0-FX 11/2/2005 1:30:00 PM:
    EUR A0-FX 11/2/2005 2:30:00 PM:
    EUR A0-FX 11/2/2005 3:30:00 PM:
    EUR A0-FX 11/3/2005 9:30:00 AM:

    However, for hourly bar starting from NOW tracing back to yesteday, you will have to do:

    handler= (*m_piHooks)->GetRequestHistory("EUR A0-FX","60",btDAYS,2,-1,-1);

    Anthony

    Comment

    Working...
    X