Announcement

Collapse
No announcement yet.

getValue()

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

  • getValue()

    In function
    getValue( barType [, nOffset] [, nNumBars] [,Symbol] )


    When should I set nNumBars to a positive integer and when to a negative integer? What is the difference? Thanks.

  • #2
    Hi,

    It all depends on how you want to order your arrays.

    getValue("Close", 0, -6)
    and
    getValue("Close",-6, 6)

    would both return the last 6 closes, but the first one would load the array most recent to last and the other would load it oldest to most recent.
    Garth

    Comment

    Working...
    X