Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to plot indicator for just the current bar

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

    How to plot indicator for just the current bar

    Hi,

    I've created a very simple indicator that plots a dot x ticks below the current price (and x, 3x and 5x ticks above the current price).

    How can I make it plot only for the current bar?

    Thank you,

    Jorge
    Attached Files

    #2
    Jorge,

    When you call DrawDot() don't give them unique names every bar. Remove the + CurrentBar addition to the string ID.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Jorge,

      When you call DrawDot() don't give them unique names every bar. Remove the + CurrentBar addition to the string ID.
      Hi Josh, thank you for your prompt answer. However, I don't use the DrawDot() method, I simply use Plot.Set(Close[0]-variable), any other idea, or could you please elaborate?

      Thank you,

      Jorge

      Comment


        #4
        If you are using a Plot for sure it will show up for every single bar. Plots have values for each bar. What you want to do is use DrawDot() if you only want to see the last one.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK, Josh, thank you

          Comment

          Latest Posts

          Collapse

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