Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame indicator freeze

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

    Multi Time Frame indicator freeze

    So I have an indicator the OnStartUp is blank the Initialize is blank except for this one line of code Add(PeriodType.Tick,300). I load up a 600 tick chart and put the indicator on it, and the chart goes blank no bars or anything and it stays like that. I put log statements in the first line of the OnBarUpdate, they're never printed. I've made successful multi time frame indicators before, and never came across a problem like this. Any ideas?

    #2
    How many days to load are on the chart you're adding the indicator?

    Does it still freeze if you switch the PeriodType to a minute?

    Does the control center indicate it is loading data in the bottom right hand corner?

    If you comment out all the logic in OnBarUpdate(), does it still freeze?
    MatthewNinjaTrader Product Management

    Comment


      #3
      How many days to load are on the chart you're adding the indicator?
      3
      Does it still freeze if you switch the PeriodType to a minute?
      yes
      Does the control center indicate it is loading data in the bottom right hand corner?
      no, I've even tried different feeds.
      If you comment out all the logic in OnBarUpdate(), does it still freeze?
      yes

      Comment


        #4
        update: it seems to only have trouble loading time frames smaller then the chart.

        Comment


          #5
          If you load a tick chart of the symbol standlone, would that request be fullfilled normally and without issues?

          If not, please the same with a fresh cache. To do this go with NT7 closed to:

          Documents\NinjaTrader 7\db\cache and delete the sub(!!) folders seen here.

          Then restart NT7, reconnect and recheck the chart building - then finally attempt loading your script again.

          Comment


            #6
            If you load a tick chart of the symbol standlone, would that request be fullfilled normally and without issues?
            yep

            Comment


              #7
              Thanks, would you mind contacting us via Help >> Mail to Support so we could review your diagnostic trace / logs files along with the code sample you tried to run?

              Comment


                #8
                nah, Thanks for the help but I finally solved it. Strangest thing, the auto generated code at the bottom was causing it I deleted that, recompiled, and it worked.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                574 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                333 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                553 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X