Announcement

Collapse
No announcement yet.

bars vs days request

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

  • bars vs days request

    I am having a hard time understanding the difference between a history btbars requuest and a history btdays request,
    is that explained somewhere in an easy to understand way?
    thanks,
    Diana
    Diana Castillo

  • #2
    Essentially, this argument modifies the way the fourth argument (number of bars) works. btDays causes that fourth argument to request X number of days, whereas btBars causes it to request X number of bars. So for example, this request:

    esignal.RequestHistory("MSFT", "1", btBARS, 5, -1, -1)

    will give you five 1-minute bars. On the other hand, this request:

    esignal.RequestHistory("MSFT", "1", btDAYS, 5, -1, -1)

    will give you five days worth of 1-minute bars.

    Comment

    Working...
    X