Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw text not plotting correctly

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

    Draw text not plotting correctly

    Hi,

    I am trying create a simple indicator that also marks the bar size on top of each bar using the following code:

    double Rangesize = Math.Round(High[0]-Low[0],2)*100;
    string Rangeoutput = Rangesize.ToString();

    DrawText("BarSize",Rangeoutput,0,High[0]+10*TickSize,Color.Black);

    But it is only plotting on the right most bar, and after scrolling right then back left it doesn't even show there, i.e. it only shows once then disappears until I scroll right to the next bar that I haven't looked at yet.

    I've done this a couple times before using 6.5 and it worked no problem and I can't see from reading the help that anything is wrong. Thanks for any help.
    Attached Files

    #2
    vegasfoster, you just update one drawing object all the time, hence you see no history of those -

    Comment


      #3
      Thanks for responding so quick, I don't understand what you mean without looking at the example, but I am getting this error when I try to import. Thank you.
      Attached Files

      Comment


        #4
        You can also take a look here - http://www.ninjatrader-support.com/H...verview28.html
        Basically you want to use unique tag id's for each draw object to see the history of objects displayed.

        For the import error, please follow those steps here to see where your present files create compile issues -

        Comment


          #5
          OIC, forgot about that part, thank you.

          Comment

          Latest Posts

          Collapse

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