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

MACD updown: avg line to stay on top

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

    MACD updown: avg line to stay on top

    Hello. I have the MACD updown set as in the picture, How can I get the avg line to display on top of the bars? Thank you
    Attached Files

    #2
    Hello Alright_it,

    Thank you for your post.

    You will need to change the Z-Order of the chart object, to accomplish this

    - Select the chart object by left mouse clicking on it
    - Hold down the "Shift" key on your keyboard and roll the mouse scroll wheel to change the z-order of the object. The current position out of the total number of levels in the z-scale will be displayed.

    This will allow you to change the Z-Order on the fly if this happens again.
    Click here for more info on Z-Order(Read the section "How to change the z-order(paint order) of a chart object)
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for replying Cal, but probably I wasn't clear. I need that white line I marked with an arrow, which is the average line and is part of the MACD indicator, to plot on the foreground of the green-red bars, while currently it's on the background. The histogram bars and the lines on the MACD indicator are all on one level, so I'm afraid the trick you suggested doesn't work

      Comment


        #4
        Alright_it,

        Can you attach a copy of the MACDUpDown so that I can see how it is being coded?
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Of course! I'm glad you're taking the time and patience to look into it. I tried myself to move a few lines around with no good results LOL
          Attached Files

          Comment


            #6
            Alright_it,

            I went through and was not able to find the method of switching the Z Order internally for the script. You're best bet would be to have a second MACDUpDown and have it just plot the Avg and the other the MACD
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Cool! Simple and effective! Looks ok now. I should have thought about it myself. Thanks very much, Cal.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rhyminkevin, Today, 04:58 PM
              3 responses
              48 views
              0 likes
              Last Post Anfedport  
              Started by iceman2018, Today, 05:07 PM
              0 responses
              5 views
              0 likes
              Last Post iceman2018  
              Started by lightsun47, Today, 03:51 PM
              0 responses
              7 views
              0 likes
              Last Post lightsun47  
              Started by 00nevest, Today, 02:27 PM
              1 response
              14 views
              0 likes
              Last Post 00nevest  
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              50 views
              0 likes
              Last Post futtrader  
              Working...
              X