Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator not working on MES

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

    Indicator not working on MES

    Imported an Indicator and it is able to load on other futures contracts but not MES. Baffled.
    Attached Files

    #2
    Hello Buterol,

    Thank you for your note.

    What is the indicator in question? Is it one you purchased from a third party vendor, or did you get it from a different source?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      It is originally from Pine ported over. Error received in output is
      "Error on calling 'OnBarUpdate' method on bar 258: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."

      Comment


        #4
        Hello Buterol,

        Thank you for your reply.

        Generally we would see this error if you are trying to access a series using a bar index that doesn't have information or is for an invalid index.

        What I would suggest is adding prints to the indicator to see what the values of the variables and series are on each bar. This should help you identify what value is causing the error.

        This forum post goes into great detail on how to use prints to help figure out where issues may stem from — this should get you going in the correct direction. You can even add these using the Strategy Builder.


        If you run into issues like we saw here, the above information will allow you to print out all values used in the statement or condition in question that may be evaluating differently than expected. With the printout information you can assess what is different between the values on a bar that does process and when it errors.

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Hi, just wantrd to say thank you, cause I had quite the same problem.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          14 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          229 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Started by TradingLoss, 04-21-2024, 04:32 PM
          4 responses
          43 views
          2 likes
          Last Post TradingLoss  
          Started by cre8able, 04-17-2024, 04:16 PM
          6 responses
          56 views
          0 likes
          Last Post cre8able  
          Working...
          X