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 vantojo, Today, 09:32 AM
      0 responses
      4 views
      0 likes
      Last Post vantojo
      by vantojo
       
      Started by FelipeRXP, Today, 08:40 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by petedian, Today, 08:44 AM
      0 responses
      12 views
      0 likes
      Last Post petedian  
      Started by J0shTrader, Yesterday, 12:29 PM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by bc24fl, Today, 08:07 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X