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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    29 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    15 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X