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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X