Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 lightsun47, Today, 03:51 PM
      0 responses
      4 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      8 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      44 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      13 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      9 views
      0 likes
      Last Post port119
      by port119
       
      Working...
      X