Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Waxavi, Today, 02:10 AM
              1 response
              17 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by Kaledus, Today, 01:29 PM
              5 responses
              13 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by Waxavi, Today, 02:00 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by alifarahani, Today, 09:40 AM
              5 responses
              23 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by gentlebenthebear, Today, 01:30 AM
              3 responses
              17 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X