Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars Series Discrepency

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

    Bars Series Discrepency

    Hey guys i just noticed a serious problem in one of my strategies. I have a strategy that runs on the ES 5 minute bars. I added two other bar series to the strategy one is an unrelated series 5 minute bars the other series is

    Add("ES 12-14", PeriodType.Minute, 5); This is of course the same series as the primary series.

    I then have a statement like:

    Print: Close[0] + " " + Closes[2][0]

    The problem is that Closes[2][0] sometimes prints the same value as Close[0] as it should but in other cases it prints a value 6 to 8 points below the Close[0]. Whats wrong with the strategy?

    Thanks,
    EliteTraderNYC

    #2
    Hello elitetradernyc,

    Thank you for your post.

    Print the values you want to check not just Close[0]. If you want to compare the primary to the third series use Closes[0][0] and Closes[2][0].

    Comment


      #3
      Hi, maybe you misunderstood my question. Closes[0][0] should equal Closes[2][0] right? because they are both ES 5 minute series, but they do not? I just tried again.

      Comment


        #4
        Hello elitetradernyc,

        Thank you for your response.

        I understood your request, however my tests show that the values are always the same. Please provide the code you are using to test.

        Comment


          #5
          Figured it out, this is caused when a backtest is run on ES 09-14 when the secondary data series included within the strategy is actually ES 12-14.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          162 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          313 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          245 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X