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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    144 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    283 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X