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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 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
          573 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          575 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X