• 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()?
    PaulNinjaTrader 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?
        PaulNinjaTrader 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
            PaulNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by dariuszszyc, Today, 09:08 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_JoshG  
            Started by Sadat, Today, 09:09 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_JoshG  
            Started by login_dejavu, Today, 07:57 AM
            4 responses
            18 views
            0 likes
            Last Post login_dejavu  
            Started by Lender, Yesterday, 05:15 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by rcmcd, Today, 07:52 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Working...
            X