Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volumetric Bars - CurrentBar

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

    Volumetric Bars - CurrentBar

    I've Volumetric Bars as a secondary data series with 1440 minute bar. I wanted to reference the CurrentBar (Bar still in progress) on the script. Would the below be the correct way to do it?

    barsType.Volumes[CurrentBar].BarDelta;

    #2
    Hello AgriTrdr,

    That would be correct if that code is within a BarsInProgress check for the secondary series. For example if your volumetric series is the first added secondary series:

    if(BarsInProgress == 1)
    {
    Print(barsType.Volumes[CurrentBar].BarDelta);
    }

    If that is not within a BarsInProgress check you need to specify the correct CurrentBar:

    barsType.Volumes[CurrentBars[1]].BarDelta;


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    60 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    43 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X