• 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 GeoOrtiz, 02-21-2020, 03:44 PM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by KeenEdge, Today, 04:08 PM
              0 responses
              2 views
              0 likes
              Last Post KeenEdge  
              Started by aipjcnow, Yesterday, 12:56 PM
              2 responses
              11 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Nice-Spread, Yesterday, 02:02 AM
              2 responses
              14 views
              0 likes
              Last Post Nice-Spread  
              Started by jaysinclair, Today, 01:04 PM
              0 responses
              3 views
              0 likes
              Last Post jaysinclair  
              Working...
              X