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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        71 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        43 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        25 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        28 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        56 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X