Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

drawn objects into the foreground

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

    drawn objects into the foreground

    Hi, how can I bring drawn objects into the foreground, for example a Draw.Line? i think there will be a simple command for that ;-)

    Click image for larger version

Name:	Screenshot_1.jpg
Views:	347
Size:	22.3 KB
ID:	1119354Click image for larger version

Name:	Screenshot_2.jpg
Views:	341
Size:	17.1 KB
ID:	1119355
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    Thank you for your post.

    Drawing objects could be brought into the foreground by specifying the ZOrder for an indicator by using SetZOrder.

    SetZOrder represents the index in which chart objects are drawn on the chart's Z-axis (front to back ordering). Objects with a higher ZOrder are drawn first. If you want to draw your objects on top of the bars, you could assign SetZOrder to use the index int.MaxValue.

    Please note that assigning specific ZOrder indices to draw at should be done once the State has reached State.Historical. All drawing objects drawn by the indicator will have the same relative ZOrder.

    The following help guide link demonstrates how SetZOrder could be used - https://ninjatrader.com/support/help...?setzorder.htm

    Let us know if we may further assist.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi _BrandonH, great thanks a lot that helped me ;-)
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      71 views
      0 likes
      Last Post PaulMohn  
      Working...
      X