Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy adds BarsArray from an indicator

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

    Strategy adds BarsArray from an indicator

    Hello,

    I have multi-instrument strategy - currencies, same time frame.

    My strategy check custom indicator if its value is 1. If yes, strategy submit an order.
    Indicator uses two time frames - one is the same as in the strategy, second one is a higher time frame.

    I have 18 instruments in the strategy and I am using BarsInProgress in order to do calculation for every instrument.

    Is this possible that strategy added also higher time frame from the indicator and now I have 36 BarsArray, not 18.

    Can I somehow filter this extra BarsArray with higher time frame in the strategy so the strategy was not doing its calculations on them?

    #2
    kucharek, the strategy script would only have the bars series added it would have in it's own Initialize / Add method. Do you mean you're getting BIP printed from 0-35 if you're not filtering for any specific series in the strategy script directly?

    Comment


      #3
      I had this issue yesterday. Today everything works well. I will come back to you if something changes. I am sorry for this confusion.

      Comment


        #4
        Sounds good and no worries.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        71 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X