Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
          BertrandNinjaTrader Customer Service

          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?
              BertrandNinjaTrader Customer Service

              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 wzgy0920, 04-20-2024, 06:09 PM
                2 responses
                26 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, 02-22-2024, 01:11 AM
                5 responses
                32 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, Yesterday, 09:53 PM
                2 responses
                49 views
                0 likes
                Last Post wzgy0920  
                Started by Kensonprib, 04-28-2021, 10:11 AM
                5 responses
                191 views
                0 likes
                Last Post Hasadafa  
                Started by GussJ, 03-04-2020, 03:11 PM
                11 responses
                3,230 views
                0 likes
                Last Post xiinteractive  
                Working...
                X