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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    36 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    287 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    287 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    95 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X