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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        413 views
        0 likes
        Last Post CaptainJack  
        Working...
        X