Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IsFirstTickOfBar called 3 times in Renko Bars

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

    IsFirstTickOfBar called 3 times in Renko Bars

    Hi, why is the print statement called 3 times for renko bars and "IsFirstTickOfBar" instead of only 1 time? It's a bug?
    Attached Files
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    Thank you for your post.

    Based on your screenshot, the three different prints have different values for CurrentBars[0]. Based on your condition, I would expect the script to print on the first tick of each new bar that is formed. If you right-click your chart and select "Show Data Box" and then right-click the data box and ensure "Show Bar Indexes" is checked, you may hover your mouse cursor and compare the bar index numbers with the numbers printed to the NinjaScript Output window.

    Please provide more details about what you are trying to achieve if this is not the behavior you expected and I would be glad to assist you further.

    Comment


      #3
      I believe this is expected behavior with NinjaTrader Renko bars based on the characteristics of redrawing the finished bar.
      References:



      I would imagine a work around is to deal with the 1st or 3rd call based on either a bool or a counter.

      Comment

      Latest Posts

      Collapse

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