Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Labelling Bars

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

    Labelling Bars

    Hi-

    I have a question regarding drawing Text above/below bars. I'm using the below-written DrawText function to write the number 1 on the current bar. This code is written in OnBarUpdate. However, this never works. What am I missing?

    DrawText("1", "1", 0, 0, Color.Red);

    I would think something this simple would be, you know, simple.

    Thanks!
    jon

    #2
    Jon, your y Axis value is 0, thus you never see it - please try for example the high / low price value and a tick offset -

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Jon, your y Axis value is 0, thus you never see it - please try for example the high / low price value and a tick offset -

      http://www.ninjatrader-support.com/H...gOnAChart.html
      Doh! Thanks!

      Comment

      Latest Posts

      Collapse

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