Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw object to the foreground

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

    draw object to the foreground

    using DrawDot, DrawDiamond, etc. in an indicator -- noticed that these objects are sometimes "hidden" behind MAs if the indicator that draws is set to CalcOnBarClose = false and the MA happens to be extra-wide.

    in my specific example, 10ticks into the bar, we draw a dot, and then after the bar closes, we paint the MA which just so happened to be wide enough and directly over the top of the dot.

    i'm curious to know if there is a z-order override or a method to force these objects to the forefront when they are drawn (thinking no, but this may be the ideal solution for performance reasons) ...

    or would the proper approach be to re-paint the object once more after the bar closed -- would that, by default, make it on top since it is now the last item drawn over that space?

    just thinking out loud here ... appreciate any insights one might have :-)

    cheers,
    -e

    #2
    Hi e-man,

    Unfortunately, there is no supported procedure for doing this.

    You can try using ZOrder = -1; in Initialize() to see what that behavior offers you.
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X