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 andrewtrades, Today, 04:57 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X