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

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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,603 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          8 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          4 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          12 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X