Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Text drawn on top of the chart

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

    Text drawn on top of the chart

    I want to write the session date of each session at the top of the chart. What I don't want is to use Draw.TextFixed(). How can I calculate the y coordinate location of the text Rect?

    Since I have never used either ChartPanels or ChartControls, I've started to look into these topics, but I got confused.

    #2
    Hello Gianpiero,

    The top of the panel can be found with ChartPanel.Y.

    Below is a link to the help guide.


    As well as a link to an example of rendering text.
    Simple script that adds a background watermark of the instrument symbol (and expiry if a future) to the chart. (Updated July 10th, 2018 ‐ The opacity needed to be casted as a double and divided by 100 to be between 0 and 1) (Update: August 24th, 2021 – Subtracted the ChartPanel.Y so indicator can be […]
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Did you try,

      Right click in chart
      Select 'Properties'
      Check 'Show date range'

      Does that help?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X