Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicators freezing

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

    Indicators freezing

    Hi all

    I have a problem with a few indicators. I don't know if it is a problem with NT7 or my code. Here is the situation :

    I have created indicators that do reference other indicators. I also have two time frames. 1 minute and 50 ticks.

    Sometimes they work without any problems but some day they just freeze everything on the screen.
    No error messages seen. I also looked at the trace file and nothing appears there to give me some clue.

    If I look at the Windows Task Manager under the Performance Tab I see that the CPU Usage just falls to 0% and that's it. To exit NT7 I have to go to the application Tab pick Control Center and End Task.


    Have you heard about similar problem. What do you think I should be looking for

    Thanks

    Bernard

    #2
    Bernard, would it be possible for you to post the code to the indicators so we can at least try it out?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Austin

      My smallest file have 600 lines of code

      What can I do ?


      Bernard

      Comment


        #4
        Maybe I'll try to post small part of code where I think that it could be a problem


        Bernard

        Comment


          #5
          First of all I would like to know if referencing another indicator ( indicator vs indicator) is OK.

          I am doing a lot of these relationship between strategies and indicators. That should be OK because some times it works !


          Code:
          if((NT7utilTail10M(12).T1Bull && Low[0] <= NT7utilTail10M(12).TailTriggerHigh)) {
          		
          		if((NT7SquatBar(true,10,2).SellSquatTriggered[0] || (NT7PaintBars().Bar_Color > 0 && SellingBar())) && (High[0] < LastBuyLevel || Low[0] < LastBuyStop)
          			&& GetLowCount() >= 10 && ((High[0]-Low[0])/TickSize) <= maxRange){	
          			if(BullFilterSetup){
          			BuyOrder = High[0];
          			BuyStop = Low[0];
          			BuyAlert = true;
          			}
          		}
          		
          		
          		}

          Comment


            #6
            Bernard, thank you. You could always email it to support @ ninjatrader . com attention "austin - thread 23949".
            AustinNinjaTrader Customer Service

            Comment


              #7
              Sorry, our messages crossed in cyberspace. But yes, referencing an indicator from an indicator is not a problem.
              AustinNinjaTrader Customer Service

              Comment


                #8
                Austin

                That line of code shouldn't be a problem :


                Code:
                if(display_mode == Mode.Realtime_Only && Historical){
                            return;        
                        }

                Comment


                  #9
                  I've got that in my Initialize() method :

                  Code:
                  //decimalPointLocation = NT7Assistant().Decimal_Point_Location;
                              switch(decimalPointLocation){
                                  case 0 :
                                      decimalpoint = "{0:0}";
                                      break;
                                      
                                  case 1 :
                                      decimalpoint = "{0:0.0}";
                                      break;
                                      
                                  case 2 :
                                      decimalpoint = "{0:0.00}";
                                      break;
                                      
                                  case 3:
                                      decimalpoint = "{0:0.000}";
                                      break;
                                      
                                  case 4:
                                      decimalpoint = "{0:0.0000}";
                                      break;
                                      
                                  default :
                                      decimalpoint = "{0:0.00}";
                                      break;
                              }
                              
                              Add(PeriodType.Tick,50);
                              
                              CalculateOnBarClose    = true;
                              Overlay                = true;

                  Comment


                    #10
                    Bernard, I know it will be a tedious process, but if you could provide a stripped-down sample of code that demonstrates the freezing, we'd love to take a look at it.

                    To do so, you could simply place different Print() statements throughout the code to help pinpoint where the code stops and the freezing starts.
                    AustinNinjaTrader Customer Service

                    Comment


                      #11
                      Good idea

                      I'll do that and come back to you

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      597 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      343 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      556 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      555 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X