• 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 J4Runner, Yesterday, 07:21 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Marco  
              Started by dtl-saw, Yesterday, 08:44 PM
              0 responses
              13 views
              0 likes
              Last Post dtl-saw
              by dtl-saw
               
              Started by ballboy11, Yesterday, 04:29 PM
              0 responses
              13 views
              0 likes
              Last Post ballboy11  
              Started by zacharydw00, Yesterday, 02:29 PM
              2 responses
              30 views
              0 likes
              Last Post zacharydw00  
              Started by timcjpfx, Yesterday, 06:22 AM
              4 responses
              27 views
              0 likes
              Last Post timcjpfx  
              Working...
              X