Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Output window

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

    Output window

    I have been having an issue as follows:

    When i load a custom indicator it seems it is never released from memory.

    If i put a print statement into it like:
    Print ("Key"+" "+idVolumeInfoItem.Key+" "+"Ask pulled"+" "+idVolumeInfoItem.Value.up.ToString());

    It prints to the output window just fine. Now if i section out this code, and hit compile the output window continues to print upon f5 refresh. If i uncomment the code and hit f5 and recompile it continues to post the first code and the second code. It appears custom indicators are being left in memory or something.

    Here are the step that you can follow:

    take a simple ninja indicator

    rename the indicator to make it custom

    add a print statement

    add to chart after compile.

    confirm it is printing the statement.

    go into editor and wither change the print statement or uncomment it and hit compile

    hit f5 on the chart indicator was loaded. watch the output window to see it continues to print, or it prints the old and new.

    The only way i can get it to reset is to disconnect from data feed or restart ninja.

    Let me know anything else i can provide. I updated today hopeful that would fix it. I use the print allot to check how my code is working while i build new code and having ti not remove new commented out items is starting to drive me insane.

    Thanks

    Tim

    Hope I gave enough information

    #2
    Works for me. How does the following work:

    recompile with changed printing
    clear the output window
    click in your chart window
    If you see more output, go clear it, too (sometimes yes, sometimes no for me)
    once you can click and the output window remains clear, then F5

    See whether that helps. No guarantee.

    I do know that if I change printing and recompile, the change does take effect when I reload.

    --EV

    Comment


      #3
      Tim, works for me as well. I've attached the indicator code I used to test this out.

      Code:
      protected override void OnBarUpdate()
      {
          if (CurrentBar == 3)
              Print("test print message");
          // Use this method for calculating your indicator values. Assign a value to each
          // plot below by replacing 'Close[0]' with your own formula.
          Plot0.Set(Close[0]);
      }
      protected override void OnMarketData(MarketDataEventArgs e)
      {
          //Print(e.ToString());
      }
      Can you please restart your computer and see if the issue goes away?
      AustinNinjaTrader Customer Service

      Comment


        #4
        I restarted and updated, been doing it for weeks, then this am it stopped. I have no clue what changed. I will monitor and report back

        Comment


          #5
          Thanks Tim, I'll keep on my list to look into as well - if you come across any additional insight, please let us know.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          598 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