Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overlay=true no work for me

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

    Overlay=true no work for me

    Hello NT friends

    I am trying to overlay a plot and a DrawLine to price but i cant. My drawing stay in the bottom always.




    What i am doing wrong? Thank you

    Here my code:


    Code:
    protected override void Initialize(){ 
        Overlay =true;
        DrawOnPricePanel = true;
        Add(new Plot(Color.Blue,PlotStyle.Line, "plotline")); 
     } 
     
     protected override void OnBarUpdate(){ 
         DrawHorizontalLine("newline", false, Close[0], Color.Black, DashStyle.Solid,3); 
         MaxNivel.Set(Close[0]); 
     
     }

    #2
    You will need to manually addjust the Z-order of your plot to display over the candles

    You can change the Z-order of the indicators or data series on your chart by using the SHIFT key and the scroll wheel on your mouse.

    We do not currently support programmatically setting the Z-order at this time.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Ok Matthew, works.

      But, now i ask me whats is the function of Overlay =true; exactly ?

      Thank you.
      Last edited by ninjo; 02-21-2013, 11:41 AM.

      Comment


        #4
        If true, the plot is drawn on the chart panel, otherwise it is drawn in a lower panel.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        160 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        307 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        348 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        178 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X