Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-series BarsSinceEntry

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

    Multi-series BarsSinceEntry

    If I have 2 instruments added to a strategy and I use BarsSinceEntry like this:

    BarsSinceEntry(1, "", 0);

    the first overload specifies the data series. But is it the data series on which the entry was made, or is it like "I entered on data series [0], but there have been this many bars since that entry if I measure using the bars on data series [1]"? I have always thought that it was the former, but I've just been testing some more and it looks like it's actually the latter which is true, so I just want to double check. Thanks.

    #2
    Radical,

    The BarsInProgress index would be the index of the Bars object the entry order was submitted against, however please note the following from our help guide.

    When working with a multi-series strategy the BarsSinceEntry() will return you the elapsed bars as determined by the first Bars object for the instrument specified by the barsInProgressIndex.
    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, Yesterday, 01:02 PM
    0 responses
    25 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    17 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    160 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    94 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    147 views
    2 likes
    Last Post CaptainJack  
    Working...
    X