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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X