Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Text white only

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

    Draw.Text white only

    Hello

    When I set a text using Draw.Text, the color of the text is always set to white regardless of the color I set as a parameter. It used to be OK but somewhere along the way it changed to white only.

    Thank you

    #2
    Hello kiss987,

    Thanks for your post.

    There are a few overloads for Draw.Text, some of which do not specify a color and would use the default color/font of the chart which would change if you changed application skins.

    Can you clarify what version of NinjaTrader8 you are using (look in Help.About).

    Can you post the specific code you are using for Draw.text()?

    Comment


      #3
      8.0.14.1 64-bit

      protected override void OnBarUpdate()
      {
      Draw.Text(this, Guid.NewGuid().ToString(), "a", 0, Close[0], Brushes.Pink);
      }

      Comment


        #4
        Hello kiss987,

        Thanks for your post.

        I see no issue with the code you have posted. It tests fine and produced the expected results. The brush can be changed and the changes follow as expected.

        If you use another color for the brush, does it also show white?

        Please create a new chart, do not use any chart templates. Add the indicator in question, does it also show there in white?

        Comment


          #5
          I tried that, it is still white.
          I think (not sure) that it stop working correctly after I changed the properties of one of the text object on my chart.

          Thanks

          Comment


            #6
            Hello kiss987,

            Thanks for your reply.

            Can you provide a template or workspace that consistently produces the issue? If so, please send into PlatformSupport[at]NinjaTrader[dot]Com, mark the e-mail Atten: Paul and include a link to this thread.

            I note that this sounds similar to what is being reported in this thread: https://ninjatrader.com/support/foru...d.php?t=110371

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            95 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            140 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
            125 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            75 views
            0 likes
            Last Post PaulMohn  
            Working...
            X