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 Noerclou, Today, 04:55 AM
                0 responses
                1 view
                0 likes
                Last Post Noerclou  
                Started by llanqui, Yesterday, 09:59 AM
                2 responses
                16 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Started by ThoriSten, Today, 03:56 AM
                0 responses
                6 views
                0 likes
                Last Post ThoriSten  
                Started by PhillT, 04-19-2024, 02:16 PM
                3 responses
                20 views
                0 likes
                Last Post mangel2000  
                Started by TraderBCL, Today, 02:37 AM
                0 responses
                4 views
                0 likes
                Last Post TraderBCL  
                Working...
                X