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 rajendrasubedi2023, Today, 09:50 AM
        0 responses
        2 views
        0 likes
        Last Post rajendrasubedi2023  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        1 view
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        20 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by lorem, Today, 09:18 AM
        1 response
        5 views
        0 likes
        Last Post lorem
        by lorem
         
        Working...
        X