Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator opens new panel for no (obvious) reason

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

    Indicator opens new panel for no (obvious) reason

    Hi all,

    I am writing an indicator with the aim to get sound alerts and prints to the output window. I do not want to plot anything in the price chart or in a panel below.

    I copied an indicator I had written for something else which included the command "DrawOnPricePanel = true;" - So I am commenting that line out...

    Nothing left in the indicator asks for a plot, yet when activated an empty panel opens below the price chart.

    Does anyone know what to do here? It seems it is an obvious error on my side but I cannot figure it out.

    One thing to mention: I am calling other indicators in the code, for example I am calling MACD and print its value... Could this be causing this?

    aaMBmacd_value[0] = aaMBmacd(FastPeriod,SlowPeriod,9).Value[0];
    Print("MACD: " + Math.Round(aaMBmacd_value[0],4));

    Thank you for your help.

    pennywise

    #2
    You might want to reconsider using DrawOnPricePanel ...

    Did you try using IsOverlay?
    Last edited by bltdavid; 07-16-2020, 10:37 PM.

    Comment


      #3
      I have both saying false but still the empty panel opens. I don't think anywhere the code instructs to open that panel. Is there a cache that can be cleared in NT?

      Comment


        #4
        Hello pennywise,

        Thanks for your post.

        IsOverlay is the property that controls if the indicator creates an indicator panel. Reference: https://ninjatrader.com/support/help...?isoverlay.htm A setting of false would create an indicator panel. Calling additional indicators from an indicator would not cause other panels to open

        If you have an indicator that opens an indicator panel and IsOverLay is correct set to true, please attach your indicator file so I can test on my end. Alternatively, if you prefer not to post your indicator/code, please feel free to write into PlatformSupport[at]Ninjatrader[dot]Com. Mark the e-mail Atten:Paul, ticket # 2657037. Include the source code file itself and link to this thread for reference.

        Comment


          #5
          Thanks NinjaTrader_PaulH, and also thanks bltdavid, I should have read the IsOverlay description properly: True (not false) prevents the indicator from creating an indicator panel. Apologies for wasting your time here... :-(

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          590 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          342 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
          555 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X