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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X