Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

IsFirstTickOfBar unreliable in Market Replay on multiple timeframe strategies

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

    IsFirstTickOfBar unreliable in Market Replay on multiple timeframe strategies

    Hi,
    I am experiencing that IsFirstTickOfBar is unreliable in Market Replay on multiple timeframe strategies. It fires too often. I have not noticed the same problem on normal charts (in realtime of course).
    This observation is from careful logging and processing during BarsInProgress==0.
    v8.0.20.0

    saltminer.

    #2
    Hello saltminer,

    Do you have a test which explores what you have described? There are not enough details provided for me to create a test script or to know what specifically was being done in your test for logging. Could you provide more details about your test and the situation it was being used it?

    What was the expectation vs what was the result seen?
    What syntax was being used in the test?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I found the problem in a strategy that uses the chart bars (minute based) and it loads a 1 tick dataseries as well. The problem was occurring on the chart bars. (Of course, every tick on the 1 tick dataseries is a FirstTickOfBar)

      You could use a simple shell strategy that simply prints out like this:
      if (BarsInProgress == 0)
      Print("FirstTickOfBar="+IsFirstTickOfBar+", current bar "+CurrentBar+" of "+Count);

      saltminer

      Comment


        #4
        Hello saltminer,

        Thanks for the additional details.

        I am still not clear on the specifics of your test or what output you had seen. What was your output when you ran the test and what was your expectation on what should be seen? What steps did you take during the test?

        You said it happened more frequently than it should, was the test to elapse one bar in realtime but you had seen it called more times during one bar? What was the specific problem?


        Additionally the version you reported is one behind I would suggest updating to 8.0.20.1 to see if this still happens.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rajendrasubedi2023, Today, 09:50 AM
        0 responses
        9 views
        0 likes
        Last Post rajendrasubedi2023  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        4 views
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        24 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