Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting the Color of a Specific Words and Not Entire Text Object

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

    Setting the Color of a Specific Words and Not Entire Text Object

    Hello,

    Is it possible to set the color of a specific word in a TextFixed object? I'm leaning towards no.

    Thanks
    Unsuitable
    NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

    #2
    Hello Unsuitable,

    Thank you for your post.

    There are no supported methods for setting the color of a specific word instead of the entire text object drawn by Draw.TextFixed. The brush color set for Draw.TextFixed will apply the color to the entire Draw.TextFixed string.

    Something you could do is create sequences of Draw.TextFixed() where each method used is assigned a different color. See the example script made by my colleague Paul in the forum post linked below which demonstrates this.

    DrawTextFixedColorExample - https://ninjatrader.com/support/foru...draw-textfixed

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hello Brandon,

      OK that's what I figured. Instantiating multiple TextFixed such as Paul is a viable solution. However, the indicator in question uses the background and border of Draw.TextFixed() so there's a nice container for the information.

      Seeing how the limitation is TextFixed, could NT develop (submit a feature request) of a meta TextFixed object container whose only function is to provide a background and border for TextFixed objects within it?

      Thanks
      Unsuitable
      NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

      Comment


        #4
        Hello Unsuitable,

        Thank you for your note.

        I have submitted this as a feature request to the Development Team. I will follow up with an internal tracking number for your reference as soon as it is created.

        Thanks in advance for your patience.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5

          Hello Unsuitable,

          Thanks for your patience.

          The internal tracking number for your feature request is SFT-5251. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.

          When a feature request is implemented, you'll find a description of the new feature in the release notes:Let us know if we may assist further.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          650 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X