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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        64 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X