Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

dataseries with multiple bar series

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

    dataseries with multiple bar series

    Hi, I am using primary (60min) and secondary (1min) bar series and only have limited knowledge of using them together with a variable that can be accessed when i am going between bar series.

    I tried to use a boolean variable that can be accessed by both data series but it doesn't seem to work? What do i need to do?

    So i tried to use a dataseries variable which can be accessed by both data series but i find it being reset to 0 when the program jumps from the secondary to the primary bar series. What do i need to do?

    #2
    If you create your variables in the Variables region of your code it will not be overwritten.

    private bool someVariable = false;

    Whatever you set it to in OnBarUpdate() is what it will remain until further changes. It doesn't matter which bar series you would be in when processing the value of someVariable.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    630 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    565 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X