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 Kaledus, Today, 01:29 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by frankthearm, Yesterday, 09:08 AM
      13 responses
      45 views
      0 likes
      Last Post frankthearm  
      Started by PaulMohn, Today, 12:36 PM
      2 responses
      16 views
      0 likes
      Last Post PaulMohn  
      Started by Conceptzx, 10-11-2022, 06:38 AM
      2 responses
      55 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      37 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Working...
      X