Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Z-Order for Drawings

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

    Z-Order for Drawings

    Hi,

    I am drawing a Fib-Extension on the chart, and have the different levels set with varying degrees of opacity. When I draw, the bars on the chart end up 'behind' the drawing, and you can see that the shaded fib levels are on-top of each bar. I would like to have the drawing and shading behind the bars, and I manually do this each time by Shift+Middle Mouse Scrolling on the Fib drawing until it is at the highest level and behind the bars.

    Is there some way to set the default level for a drawing tool, so I do not have to do this over and over all the time? I do this a hundred times a day.

    #2
    Hello DanDaMan,

    Thank you for your post.

    Unfortunately no, it's not currently possible to set a default Z-order for chart objects. However, I have added a vote for you to a current feature request to allow the Z-order of drawing objects to be set as a default. This request is being tracked under the number SFT-2833.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hello Kate,
      kindly add my vote (if not already)
      I don’t know the extent of the Feature Request, but some further thoughts in similar vein for consideration - I use OHLC indicators. If, say, price Opens at what is/becomes LOD z-order of which is highest level & thus visible is not ‘configurable’ as far as I can see. Just ponderings/food for thought from experience along the way.

      thanks

      Comment


        #4
        Hello brucerobinson,

        Kate had added your vote.

        Something you may wish to try for drawing drawn from NinjaScript would be to set the ZOrderType property of your drawing object after it is made to control the order it would be drawn. This may not give direct control, but may provide enough functionality to satisfy your ordering requirement. Please note that bars will not have individual ZOrders, each bar in ChartBars would have the same ZOrder.

        Code:
        if (CurrentBar < 5)
            return;
        FibonacciExtensions myFibExt = Draw.FibonacciExtensions(this, "tag1", true, 4, Low[4], 3, High[3], 1, Low[1]);
        //myFibExt.ZOrderType = DrawingToolZOrder.AlwaysDrawnFirst;
        //myFibExt.ZOrderType = DrawingToolZOrder.AlwaysDrawnLast;
        IDrawingTool properties - https://ninjatrader.com/support/help...art_zorder.htm

        More information on ZOrders can be found here - https://ninjatrader.com/support/help...art_zorder.htm

        For manually drawn tools, a copy of the Drawing Tool can be made that sets the ZOrderType in State.SetDefaults.

        https://ninjatrader.com/support/help...zordertype.htm
        Last edited by NinjaTrader_Jim; Yesterday, 10:05 AM.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kabott, Today, 03:17 AM
        0 responses
        1 view
        0 likes
        Last Post kabott
        by kabott
         
        Started by Jacklugate, Today, 02:36 AM
        0 responses
        1 view
        0 likes
        Last Post Jacklugate  
        Started by Jmgheosjrue, Today, 02:23 AM
        0 responses
        1 view
        0 likes
        Last Post Jmgheosjrue  
        Started by jodiesutton, Today, 01:55 AM
        0 responses
        1 view
        0 likes
        Last Post jodiesutton  
        Started by azuul, Today, 01:49 AM
        1 response
        11 views
        0 likes
        Last Post azuul
        by azuul
         
        Working...
        X