Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText Empty Background Bug?

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

    DrawText Empty Background Bug?

    I have some DrawText code that is no longer working on NT7B4.

    The following is an example of the call:

    DrawText(tag, true, text, barsAgo, price, 0, Color.White, textFont, StringAlignment.Near, Color.Empty, Color.Empty, 8);

    The issue is the areaColor parameter (parm 11) is not being respected when it is set to Color.Empty. On a chart with a black background, I get a light blue background instead of a transparent background (showing what is behind the text). When I plug in a different color, it is respected but obviously not transparent.

    I had to add the pixelOffset param to get it to compile, but I have not seen any mention of this behavior.

    #2
    We'll look into and get back to you. Thanks

    Comment


      #3
      Hi aslane !

      The bug you reported (ignoring the Color.Empty when defaults of drawing object were set before) is fixed and the fix will be available with the next update of NinjaTrader.

      Kind regards,
      Christian
      ChristianSenior Software Developer

      Comment


        #4
        Fantastic. I will be sure to test it out.

        Comment


          #5
          In B5, this is working correctly. Thanks.

          Comment


            #6
            Thank you for reporting back.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            612 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            355 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            561 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            564 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X