Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing text

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

    Drawing text

    I'm trying to draw some text labels on my chart, but I'm unable to see them.

    For example, the following code draws the down arrow, but I don't see any text. I also tried replacing the ChartControl.Properties.ChartText with a regular color, but that didn't seem to make any difference.

    Draw.ArrowDown(this, CurrentBar.ToString(), true, 0, High[0] + TickSize, Brushes.DodgerBlue);
    Draw.Text(this, CurrentBar.ToString()+"Text", "high", 10, 1000, ChartControl.Properties.ChartText);

    Any idea what I'm missing here?

    #2
    Hello stewarco,

    Thanks for your post.

    This statement: Draw.Text(this, CurrentBar.ToString()+"Text", "high", 10, 1000, ChartControl.Properties.ChartText); will draw the word high 10 bars ago (from the current bar) at a price level of 1000.

    To match the draw arrow location try: Draw.Text(this, CurrentBar.ToString()+"Text", "high", 0, High[0] + 6 * TickSize, Brushes.DodgerBlue);

    You may need to increase the number of ticks above the high to clear the arrow.

    Comment


      #3
      thanks that worked!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      93 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      138 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      123 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      73 views
      0 likes
      Last Post PaulMohn  
      Working...
      X