Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add text labels to panel with Plots while also drawing objects on price panel

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

    Add text labels to panel with Plots while also drawing objects on price panel

    I have an indicator that draws objects to the price panel (DrawOnPricePanel = true). Additionally, the indicator uses an additional panel with a bar plot. The bar plot has positive and negative bars.

    In the bar plot panel, I would like to have the value of positive and negative bars added together and displayed above each bar. For example, if the positive bar is +100 and the negative bar is -80, then the value to be displayed above the bars would be +20. I would put the value in a text drawobject and attach it to the bars series.

    My problem is that when 'DrawOnPricePanel = true' then I cannot figure out how to draw a text box in the bar plot panel. It naturally wants to draw in the price panel.

    Would anyone know how to keep 'DrawOnPricePanel = true' and still draw to the bar plot panel (aka indicator panel beneath the price panel)?

    I have attached a sample script that shows what I am trying to do. The script has DrawOnPricePanel = false so that I can show how I want the end result to appear, which is to have the netted values of each bar labeled above the bar. I used the BuySellPressure stock indicator as the base.

    Thank you for any help or information you can provide!

    Thank you,
    traderUS
    Attached Files

    #2
    Hello traderUS,

    It is not possible for a single indicator to draw objects on multiple panels.

    It is necessary to split the drawing calls into multiple indicators.

    I will submit a feature request on your behalf for the development team to consider allowing an indicator to draw on multiple panels.
    Once I have a tracking ID for this I will post in this thread for future reference.


    You could also do custom rendering with SharpDX. This would render in the same panel as the plots of the indicator.

    Last edited by NinjaTrader_ChelseaB; 11-26-2018, 12:56 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello traderUS,

      I've received tracking ID #SFT-2701 for this request to draw on multiple price panels from a single indicator.

      Please note it is up to the NinjaTrader Development to decide if or when any request will be implemented.

      We appreciate your inquiry on this.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X