Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CurrentBar, but what's the Last Bar?

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

    #16
    Originally posted by NinjaTrader_Josh View Post
    Yes, BarsRequired = 500 guarantees you 500 bars of data before doing anything.

    I still do not understand your concern about painting. When you use a plot you have a data point for every single bar. Just look at the last bar's data point value. If you are trying to write text or draw on the chart, for sure you can just keep repainting them. Use the same signal name and it will overwrite the old one instead of making new objects.
    Ok, that last comment is the key I think. I didn't realized/forgot that paint feature in NT worked that way. That it could erase and repaint the indicator. But that means I have to rewrite the code I'm porting almost from scratch for NT. arrrgg! But at least it's possible. Thanks so much for the help!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 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
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X