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