Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No plots set - No draw Objets shown

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

    No plots set - No draw Objets shown

    Scenario:

    Overlay = false;
    DrawOnPricePanel = false;
    Add(new Plot(new Pen(Color.Green, 2), PlotStyle.Line, "Above"));
    Add(new Plot(new Pen(Color.Red, 2), PlotStyle.Line, "Below"));
    Add(new Plot(new Pen(Color.Orange, 1), PlotStyle.Line, "Mid Line"));
    I condition in my indicator if I want the plots drawn or not.

    Question/Problem:
    If I don't set a plot value when I draw a rectangle it doesn't show. If i do set a plot line value the rectangles show. I put a "Print" in my and the DrarwRectangle statement is always executed.

    Why do the rectangles not show if I don't set a plot. Is this a bug?

    #2
    Hello ct,

    Thanks for your note.

    To clarify, you are plotting this indicator in its own panel and not setting any plot values, is this correct?

    The panel will not have an input series to make a price scale if this is the case. No bar slots will appear either if there is no series to work with.

    You are trying to show drawing objects in a separate panel that has no price data in it, is this correct?

    There is not a way to do this, however, we can submit a feature request on your behalf to this functionality if you would like.
    Please let me know if you would like to submit a feature request to add this functionality.

    My advice would be to set a plot value even if you are setting the same value over and over to one of the plot.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      ChelseaB

      You are correct. I thought about setting a dummy plot value but thought I would check first to see if it was a bug or not.

      Cheers

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      163 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      313 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X