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?
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by inanazsocial, Today, 01:15 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        1 view
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Started by Davidtowleii, Today, 12:15 AM
        0 responses
        3 views
        0 likes
        Last Post Davidtowleii  
        Working...
        X