Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 mmenigma, Today, 02:22 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frankthearm, Today, 09:08 AM
            9 responses
            35 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by NRITV, Today, 01:15 PM
            2 responses
            9 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Started by maybeimnotrader, Yesterday, 05:46 PM
            5 responses
            26 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by quantismo, Yesterday, 05:13 PM
            2 responses
            21 views
            0 likes
            Last Post quantismo  
            Working...
            X