• 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 jjnc2006, Today, 07:36 PM
            0 responses
            4 views
            0 likes
            Last Post jjnc2006  
            Started by futurenick, Today, 06:26 AM
            1 response
            11 views
            0 likes
            Last Post nkhoi
            by nkhoi
             
            Started by NinjaCustomer, Today, 12:29 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Started by Steve L, Today, 11:32 AM
            0 responses
            7 views
            0 likes
            Last Post Steve L
            by Steve L
             
            Started by prabbala, Today, 10:41 AM
            0 responses
            4 views
            0 likes
            Last Post prabbala  
            Working...
            X