Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bars.RemoveLastBar(isRealtime); multiple calls

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

    bars.RemoveLastBar(isRealtime); multiple calls

    I was trying to find out why my custom chart type isn't plotting correctly, and I came across this forum post. Specifically, NinjaTrader_Dierk says the following here:

    Check out "bars.RemoveLastBar()" in case you needed to replace last bar. Don't try to remove more than one bar by multiples calls in a row. Note: this is beyond what we provide support for.
    He states that you shouldn't do multiple calls which is exactly what I'm doing:

    Code:
    //if we addedthree last time, then remove those three bars; otherwise just remove the bar we added
                    if (addedThree)
                    {
                        bars.RemoveLastBar(isRealtime);
                        bars.RemoveLastBar(isRealtime);
                        bars.RemoveLastBar(isRealtime);
                    }
                    else
                    {
                        bars.RemoveLastBar(isRealtime);
                    }
    What's the reason you shouldn't do multiple calls in a row. And could this be causing my issue?

    Thanks.

    #2
    zwentz, as Dierk said, this is unsupported.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Right, was just looking for the reason why you wouldn't want to make multiple calls.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      174 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      329 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      355 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      182 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X