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 AaronKoRn, Today, 09:49 PM
    0 responses
    10 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,980 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X