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 carnitron, Today, 08:42 PM
          0 responses
          5 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Today, 07:51 PM
          0 responses
          6 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,974 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          8 views
          0 likes
          Last Post rbeckmann05  
          Started by rhyminkevin, Today, 04:58 PM
          4 responses
          58 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Working...
          X