Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawtext position

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

    Drawtext position

    I would like to put multiple draw text fields in the top left corner:


    For example I am using this for one of my indicators, but I would like to stack more than one in the top left corner, is this possible?
    {
    DrawTextFixed("tag1", "- Delta",TextPosition.TopLeft, Color.Black, ChartControl.Font, Color.Gray, Color.Red, areaOpacity);
    }



    Thanks

    #2
    Ok so apparently there was another thread on this and I figured it out, thanks.

    Comment


      #3
      Hello bruce,

      Thank you for the update. Please let us know if we may be of assistance anytime.
      Michael M.NinjaTrader Quality Assurance

      Comment


        #4
        Is there a way to add a background box so that the text can be seen? I've tried using different color backgrounds for the text field but sometimes they overlap and block out the one under. I'm looking to add a layer under the entire area, possibly with some opacity option.

        Comment


          #5
          Hello brucelevy,

          Thank you for writing in. You could use a single text and set the background for it. For example:
          Code:
          DrawTextFixed("tag1", "- Delta\r\nUptrend\r\nConsolidation", TextPosition.TopLeft, Color.Black, ChartControl.Font, Color.Gray, Color.Red, 8);
          Typing "\r\n" creates a new line in a string of text. I have attached an image of what this looks like.

          Please let me know if this does not resolve the issue or if I may be of further assistance.
          Attached Files
          Michael M.NinjaTrader Quality Assurance

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, Yesterday, 10:06 AM
          0 responses
          22 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          19 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          10 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          41 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X