Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to paint one plot on top of another?

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

    How to paint one plot on top of another?

    Hello,
    i am developing an indicator which has two plots, first being a bar and the second a line. I would like the line plot to plot on top of the bar plot.

    Code:
     
    protected override void Initialize()
    {
    Add(new Plot(new Pen(Color.Red, 4), PlotStyle.Bar, "Sells")); 
    Add(new Plot(new Pen(Color.Black, 2), PlotStyle.Line, "Vol"));
    
    ...
    The Black Line always appears behind the red bars. How can i bring the Line to the front?

    regards

    #2
    The earlier plots have priority and will plot on top of later plots. Just change the order you add them.
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Thanks Danny!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by krpkevin, Today, 07:50 AM
      0 responses
      4 views
      0 likes
      Last Post krpkevin  
      Started by robforee2, Yesterday, 06:11 PM
      2 responses
      18 views
      1 like
      Last Post NinjaTrader_ChrisL  
      Started by minds2010, Today, 03:38 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by DTSSTS, Yesterday, 07:11 PM
      2 responses
      32 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by ntbone, Yesterday, 11:42 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Working...
      X