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 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