Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars In Progress error

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

    Bars In Progress error

    I am loading 81 symbols via the Add for one of my strategies. Yesterday everything worked fine. Today my system is only trading about 5 of them. I did a print statement to track the barsinprogress and only 5 of them are spitting out. I haven't adjusted the code any from yesterday that was working with all 81.

    I cleared the cache.

    What else can I do?

    #2
    Hello vjsworld,

    Could you give us a snippet of your code on how you are using the "Add" to load the different instruments into your Automated Strategy?

    Also, did you shutdown NinjaTrader before removing the cache data?

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      reply

      yes i did restart during the clearing of cache.

      here is my add:

      j = 1;
      foreach (var pair in myBarsInProgress)
      {
      Add(pair.Key, PeriodType.Minute, 1);
      Instr[1, j] = j;
      j = j + 1;
      Print(pair.Key);
      }

      Comment


        #4
        Hello vjsworld,

        Note that dynamically using the Add() method is not supported.

        With that said, are you checking "pair" to make sure that it has all of the 81 instruments that you are trying to Add() inside of Initialize?
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aa731, Today, 02:54 AM
        0 responses
        1 view
        0 likes
        Last Post aa731
        by aa731
         
        Started by thanajo, 05-04-2021, 02:11 AM
        3 responses
        469 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Christopher_R, Today, 12:29 AM
        0 responses
        10 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,237 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        4 views
        0 likes
        Last Post thread
        by thread
         
        Working...
        X