Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Linebreak bars missing in strategy

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

    Linebreak bars missing in strategy

    I'm running a strategy using 150 tick, 2 break line bars and some bars are not being caught in the OnBarUpdate method, while they do show up in a chart using the same series. I can't find a cause, so I tried bouncing everything, in case it was some memory or internal glitch, but the condition persists.

    The missing bars seem to occur in the middle of a series of smaller surrounding bars.

    I stripped down the strategy so all it contains is a print statement that shows the bar timestamps, and included a snapshot of the output correlated to the chart.
    This is critical since the strategy is missing these entry points, so I'd appreciate it if anyone could help me resolve this issue.

    Thanks!
    Attached Files

    #2
    Hello,

    As a test what happens when you place

    DrawDot("tag1"+CurrentBar, true, 0, Low[0] - TickSize, Color.Black);

    At the start of your OnBarUpdate()?

    Does the draw dot skip these bars? If it does would you be able to post a simplified sample script that replicates the issue so that we might test on our end?

    File located in (MY)Documents\NinjaTrader 7\bin\Custom\Strategy

    If you're not comfortable posting here you can send it in to suppor[at]ninjatrader[dot]com

    Let me know how we can further assist.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Sorry, I found the cause - it was a file write function

      I failed to remove a file write function, which is the cause, when I stripping it down.
      Removing that resolves the problem. It was a synchronous write si I guess the system was just busy when those bar events should have been handled. Sorry to have waste your time.
      !

      Comment


        #4
        Glad to hear you got the issue resolved.

        Let me know if I can further assist.
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        20 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        120 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        175 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        92 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        134 views
        0 likes
        Last Post cmoran13  
        Working...
        X