• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawline over Bar

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

    Drawline over Bar

    Hello,

    When I use DrawLine command and my line crosses a bar's body, the line is hidden by the bar body. Is there any way to see it across candle's body?

    Thanks

    #2
    Hello RedDuke,

    Use SetZOrder() to set the z order to a higher value. Try setting this to 1.

    http://ninjatrader.com/support/helpG.../setzorder.htm

    The Chart Bars by default have a z order of 1.
    http://ninjatrader.com/support/helpG...art_zorder.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Will I need to put in in initialization?

      Comment


        #4
        Hi RedDuke,

        This was my mistake. This code is for NinjaTrader 8.

        NinjaTrader 7 does not have zorder support and must be changed manually after the script starts.
        1. Select the chart object by left mouse clicking on it
        2. 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.

        Below is a link to the help guide on "Navigating a Chart". Please see the section 'How to change the z-order (paint order) of a chart object'.
        http://ninjatrader.com/support/helpG...ng_a_chart.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks, it worked once I scrolled mouse wheel. Is there any way to do it programmatically in Ninja 7?

          Comment


            #6
            Hello RedDuke,

            Unfortunately no, NinjaTrader 7 does not have zorder support and must be changed manually after the script starts.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Thanks a lot

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by marcus2300, Today, 04:20 AM
              0 responses
              5 views
              0 likes
              Last Post marcus2300  
              Started by teafortwo, Today, 12:51 AM
              0 responses
              10 views
              0 likes
              Last Post teafortwo  
              Started by wevermord, Today, 12:17 AM
              0 responses
              1 view
              0 likes
              Last Post wevermord  
              Started by johnnymustard, Yesterday, 11:45 PM
              0 responses
              23 views
              0 likes
              Last Post johnnymustard  
              Started by Mttzern, 02-22-2020, 10:42 AM
              1 response
              29 views
              0 likes
              Last Post NinjaTrader_Marco  
              Working...
              X