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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    175 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    331 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    253 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    183 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X