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 alifarahani, 04-19-2024, 09:40 AM
    9 responses
    54 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by mmckinnm, Today, 01:34 PM
    2 responses
    5 views
    0 likes
    Last Post mmckinnm  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    3 responses
    60 views
    0 likes
    Last Post NinjaTrader_SeanH  
    Started by f.saeidi, Today, 01:32 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by traderqz, Today, 12:06 AM
    9 responses
    16 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X