• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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()?
    Paul H.NinjaTrader Customer Service

    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?
        Paul H.NinjaTrader Customer Service

        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
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mike09, 01-17-2020, 07:37 PM
            2 responses
            31 views
            0 likes
            Last Post koganam
            by koganam
             
            Started by ChazJ, Today, 11:04 AM
            0 responses
            2 views
            0 likes
            Last Post ChazJ
            by ChazJ
             
            Started by NT-Roland, 04-28-2018, 02:19 AM
            5 responses
            813 views
            0 likes
            Last Post Balage0922  
            Started by tonynt, 04-16-2019, 06:27 AM
            13 responses
            259 views
            0 likes
            Last Post fx.practic  
            Started by DTSSTS, Today, 09:53 AM
            0 responses
            5 views
            0 likes
            Last Post DTSSTS
            by DTSSTS
             
            Working...
            X