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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X