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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X