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

​​​​​​​Draw.TextFixed Position

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

    ​​​​​​​Draw.TextFixed Position

    Hi NT bods, I am drawing a text box as below, is there anyway to lower the position from the top right on the Y axis ? I think you can position the text in the box, but I want the box to be a bit lower .. can this be done?

    Code:
    Draw.TextFixed(this, "mytext","mytext", TextPosition.TopRight, ChartControl.Properties.ChartText,
                            ChartControl.Properties.LabelFont, Brushes.Black, Brushes.White, 100);

    Cheers

    #2
    Hello 12tkram,

    Add /r/n to the text string at the beginning. This will add a new line in the text.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi, thanks and yes I can insert a new line, that’s not the problem, the issue is the position of the box. I use a black border, so you just get an extra line between the border and the text. This is not what I require, I require the whole box to be lower on the Y axis.

      Comment


        #4
        Hello 12tkram,

        There isn't a way to adjust that.

        At this point you would need to custom render the text and a rectangle border.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          thanks, I thought that might be the case as there was nothing in the docs but wasn't sure if there was a kludge method .. thanks again .. will check it out.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by AaronKTradingForum, Today, 03:44 PM
          0 responses
          1 view
          0 likes
          Last Post AaronKTradingForum  
          Started by Felix Reichert, 04-26-2024, 02:12 PM
          11 responses
          72 views
          0 likes
          Last Post Felix Reichert  
          Started by junkone, 04-28-2024, 02:19 PM
          7 responses
          82 views
          1 like
          Last Post junkone
          by junkone
           
          Started by pechtri, 06-22-2023, 02:31 AM
          11 responses
          136 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by ageeholdings, 05-01-2024, 05:22 AM
          4 responses
          27 views
          0 likes
          Last Post ageeholdings  
          Working...
          X