Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Positions Array Correspondence to BarsInProgress

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

    Positions Array Correspondence to BarsInProgress

    I have read some contradicting information regarding how to use the Positions Array.

    I have the following in my strategy:

    BarsInProgress = 0 --- Index (do not submit orders against)
    BarsInProgress = 1 --- Instrument 1 Ticks (submit orders here)
    BarsInProgress = 2 --- Instrument 1 Minutes
    BarsInProgress = 3 --- Instrument 2 Ticks (submit orders here)
    BarsInProgress = 4 --- Instrument 2 Minutes
    BarsInProgress = 5 --- Instrument 3 Ticks (submit orders here)
    BarsInProgress = 6 --- Instrument 3 Minutes

    How would I reference the Positions Array for Instruments 1, 2, and 3?

    Is it:
    Positions[0] -> BarsInProgress = 0
    Positions[1] -> BarsInProgress = 1
    Positions[2] -> BarsInProgress = 3
    Positions[3] -> BarsInProgress = 5

    Or is it:
    Positions[0] -> BarsInProgress = 0
    Positions[1] -> BarsInProgress = 1
    Positions[3] -> BarsInProgress = 3
    Positions[5] -> BarsInProgress = 5

    Thanks,

    kc

    #2
    The second one is how it would work.
    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
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X