Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set text position different from standard options

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

    How to set text position different from standard options

    Hello guys,

    Im using Draw.TextFixed() inside my strat code, I wonder if it is possible to select the text position other than;

    TextPosition.BottomLeft

    TextPosition.BottomRight

    TextPosition.Center

    TextPosition.TopLeft

    TextPosition.TopRight

    Im currently using BottomLeft, but my box is overlaping Ninjatrader logo. Is there any way I can move it a little bit above?

    Thank you!

    #2
    Hello facuevasm,

    You would need to make your own drawing tool to support different options. At the core of the Draw.TextFixed it uses OnRender to render the text, you would have to do the same in a new drawing tool but add your specific rendering options that you wanted to support.

    Alternatively don't use the TextFixed too and just use OnRender from your indicator to draw the text directly. You can find a sample of rendering text here: https://ninjatrader.com/support/help...htsub=onrender

    Rendering uses X/Y coordinates so you would calculate the x/y for wherever in the panel you wanted it to be placed.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X