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 futtrader, 04-21-2024, 01:50 AM
          6 responses
          57 views
          0 likes
          Last Post futtrader  
          Started by sgordet, Today, 11:48 AM
          0 responses
          1 view
          0 likes
          Last Post sgordet
          by sgordet
           
          Started by Trader146, Today, 11:41 AM
          0 responses
          2 views
          0 likes
          Last Post Trader146  
          Started by jpapa, 04-23-2024, 07:22 AM
          2 responses
          17 views
          0 likes
          Last Post rene69851  
          Started by funk10101, Today, 11:35 AM
          0 responses
          1 view
          0 likes
          Last Post funk10101  
          Working...
          X