Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overlay Problem

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

    Overlay Problem

    Dear Ninja Support,

    I have created a Exponential Moving average Ribbon that I would like to plot underneath price. The ribbon consists of rectangles.

    if (CurrentBar > 1)
    {
    if(XMA_1[0] > XMA_2[0])
    DrawRectangle(CurrentBar.ToString(),false,1, Lower,0,Upper,Color.Green,Color.Green,2);
    else DrawRectangle(CurrentBar.ToString(),false,1, Lower,0,Upper,Color.Red,Color.Red,2);


    The plots are lines,

    protected override void Initialize()
    {
    Add(new Plot(new Pen(Color.Orange,1), PlotStyle.Line, "XMA_1"));
    Add(new Plot(new Pen(Color.Green,1), PlotStyle.Line, "XMA_2"));
    Add(new Plot(new Pen(Color.DarkViolet,1), PlotStyle.Line, "XMA_8"));

    PlotsConfigurable = true;

    Overlay = false;

    When the overlay is false only the plots move to panel 2 but the rectangles stay in panel 1 or Panel "Same as input series" but always on top of price. When I change the Panel for the inputs from Panel 2 to 1, the indicator continues to plot on top of price.

    Please help with fixing this problem to have the indicator underneath price

    #2
    Are you trying to Plot in Panel 2 and DrawRectangles ( Ribbons) in panel 1.
    If so I don't think you can do that. You will probably have to break it into Two indicators.

    Comment


      #3
      I would like to plot in panel 1 or in panel Same is data input the rectangles and the moving average plots. But I would like them to be beneath price.

      Comment


        #4
        Then you need to adjust the Z Order of the Rectangles.


        Comment


          #5
          Thank you JerryWar,

          I am using Ninja 7. Would you send me the DrawingToolZOrder links for ninja 7

          Comment


            #6
            NT7 doesn't have those commands. But what you can do in NT7 is Click on the object on your chart that you want in front to hightlight it. Then hold down Shift key and scroll the mouse wheel to move the object either forward or back. Then save your workspace that way.
            Last edited by JerryWar; 01-30-2017, 01:22 PM.

            Comment


              #7
              Hello TradeHer,

              Thank you for your note.

              It is not possible to set the z-order of the plots in NinjaTrader 7.

              Please let us know if if you need further assistance.
              Alan P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              576 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X