Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Data Box

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

    Custom Data Box

    hi, I want to create a custom data box in the upper right portion of my chart (fixed position) to show values I'm calculating in my indicator. It will probably be 3 to 4 lines and fit into my right margin (set at 100). Is there an example you can direct me to that does something like this? thanks

    #2
    Hello,

    You can use DrawTextFixed to draw in the TopRight corner of the chart:



    To create separate lines, you'd want to use "\n" in between each value which creates a new line

    Code:
    	DrawTextFixed("myDataBox", Close[0] + "\n" + High[0] + "\n" + Low[0], TextPosition.TopRight);
    Please let me know if you have any questions.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    138 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X