Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

An HelpGuide is an HelpGuide...

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

    An HelpGuide is an HelpGuide...

    Hello,

    in the helpguide on the landing page for volumetric acces script... there is written
    "Note: Please note in the example above a CurrentBar reference is used as index, and not a BarsAgo reference."

    OK. And what does this mean? There is no example or explanation about. So this information is for someone who knows. But then one does not go to helpguide to learn about this topic.

    If following the link then the information is // Evaluates to make sure we have at least 20 or more barsif(CurrentBar<20)return;

    OK, and what does this help for volumetric access in script?

    Best regards
    Tony

    #2
    Hello Tony,

    CurrentBar is the current bar number. BarsAgo is how many bars ago something was.

    If the current bar is bar 2000, then 5 bars ago was bar 1995.

    Series use bars ago value, not CurrentBar values. Time[BarsAgoIndex]. Time[0] will print the time of 0 bars ago or the CurrentBar. Time[5] would print the time from 5 bars ago or bar 1995. Time[CurrentBar] would print the time of the very first bar if you scroll the chart all the way to the left.

    Volumetric bars will be using CurrentBar numbers, not bars ago values, which is the opposite of how series are accessed.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    10 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    9 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X