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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X