Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

new Bars Types problem

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

    new Bars Types problem

    I have created a new Bars Type that shows only day session data for day chart.

    Everything works fine except that sometimes after market close and I reload data I am losing the last bar. I said sometimes because it does not happen all the time.

    If I close Ninja and reopen it the bars are OK.

    If there was a problem with coding it would not happens sometimes but always

    Any idea ?

    Thank you

    #2
    Hello,

    Thank you for the post.

    In this case, I really couldn't say what actually may be happening as I am unaware of what code was used. But this does sound like a difference in the way the script processes historically versus real-time data if the problem is when you reload the chart.

    To locate the reason for this, you would very likely need to add prints to the bars type and see how the logic is executed when normal, and also when not normal. You would likely also need to find a reproducible scenario to test this. This could provide a comparison of the logical path the script took in those cases and would likely be the only way to determine where the problem is.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    25 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X