• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

​​​​​​​Draw.TextFixed Position

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

  • 12tkram
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.
    https://ninjatrader.com/support/foru...565#post828565

    Leave a comment:


  • 12tkram
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello 12tkram,

    Add /r/n to the text string at the beginning. This will add a new line in the text.

    Leave a comment:


  • 12tkram
    started a topic ​​​​​​​Draw.TextFixed Position

    ​​​​​​​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

Latest Posts

Collapse

Topics Statistics Last Post
Started by ArmKnuckle, Today, 01:25 AM
0 responses
1 view
0 likes
Last Post ArmKnuckle  
Started by tff2011, Today, 01:15 AM
0 responses
2 views
0 likes
Last Post tff2011
by tff2011
 
Started by ntbone, Yesterday, 09:54 PM
0 responses
8 views
0 likes
Last Post ntbone
by ntbone
 
Started by rwilliam, Yesterday, 03:14 PM
0 responses
9 views
0 likes
Last Post rwilliam  
Started by rwilliam, Yesterday, 03:10 PM
1 response
8 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X