• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 mulshah, Yesterday, 11:12 PM
      0 responses
      2 views
      0 likes
      Last Post mulshah
      by mulshah
       
      Started by tvaughan4, Yesterday, 10:46 PM
      0 responses
      0 views
      0 likes
      Last Post tvaughan4  
      Started by digibob, Yesterday, 10:01 PM
      0 responses
      1 view
      0 likes
      Last Post digibob
      by digibob
       
      Started by ptertich, Yesterday, 09:59 PM
      0 responses
      2 views
      0 likes
      Last Post ptertich  
      Started by sledge, Yesterday, 06:11 PM
      1 response
      12 views
      0 likes
      Last Post sledge
      by sledge
       
      Working...
      X