Announcement

Collapse
No announcement yet.

how will i get the 200 bars of 5-minute data.

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

  • how will i get the 200 bars of 5-minute data.

    i would like to get the 200 bars of 5-minute data into the from 1000 minutes from now until now.
    it seems as if the below code will place the correct request, but i don't seem to be getting the correct data.
    esignal.get_RequestHistory(StockName, "5", IESignal.barType.btBARS, 200, -1, -1);
    what do you think?

  • #2
    When using btBARs type with the get_RequestHistory function, you can only obtain intraday bars. For example, if you want to obtain n number bars between 9am and 10am, the function call would be like:

    esignal.get_RequestHistory(Symbol, "5", btBARS, n, 540, 600)

    9:00am = 9 hour x 60 minutes
    10:00am = 10 hour x 60 minutes

    See the History functions section of the Desktop API documentation for detail.

    Comment


    • #3
      5 Min bar chart

      Remember that when you are requesting the bars the last bar's index is 0 and then it becomes -1, -2 ,... and so on. so if you are using for loop you want to do this:

      for x= 0 to lNumBars
      something= bars(x * (-1))

      next

      the catch is the (-1)


      Bz

      Comment

      Working...
      X