Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay

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

    #46
    Please PM me for a follow up at "dierk AT ninjatrader DOT com"

    Comment


      #47
      This is a bug which will be fixed with next update. Thanks for reporting this.

      Comment


        #48
        Great Dierk. I have not had problems with replays since installing the custom build. Everything seems to be in order. Thanks.
        Josh P.NinjaTrader Customer Service

        Comment


          #49
          Thanks for that feedback.

          Comment


            #50
            I was wondering about how Market Replay increases replay speeds. Does it skip frames and just use a keyframe to draw charts from or does it still fill in all the ticks inbetween? I am wondering this because I want to know if I can forward test my strategy at 50x to get quick results.
            Josh P.NinjaTrader Customer Service

            Comment


              #51
              Replay always replays all ticks available -> ticks are never skipped.

              How ever you might experience different behavior, due to race conditions on when actual (simulated) fills might come in.

              Comment


                #52
                Generally speaking I will only be affected by these different race conditions if my computer doesn't have enough raw computing power right?
                Josh P.NinjaTrader Customer Service

                Comment


                  #53
                  Nope, sim fills trigger in after a configurable delay (in milliseconds). This is not synced with the replay speed.

                  Comment


                    #54
                    Ahh. May I suggest this to be synced then in the next release. You can't really test strategies at anything but 1x without fills matching the replay speed.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #55
                      We'll add it to the list.

                      Comment


                        #56
                        I did a simple test with Bars.PercentComplete in Market Replay and this is the behavior I am experiencing.
                        At 1x speed I can get this code to output perfectly. It spits out the percent of the bar from 99% till the bar becomes 100%.

                        Code:
                        if(Bars.PercentComplete*100 >= 99)
                        {
                            Print("Time: "+Time[0]+" "+Bars.PercentComplete*100);
                        }
                        The problem is when Market Replay is sped up to 50x. It will stop printing these outputs and act like it completely skipped them. I suspect because of the way Market Replay increases speed (it seems to jump on steady intervals of 50secs at 50x) it causes Bars.PercentComplete to probably go from 90% straight to 100% thus never satisfying the inbetween condition at 99%. Any workaround ideas for this?
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #57
                          >> it seems to jump on steady intervals of 50secs at 50x
                          That is correct.

                          >> Any workaround ideas for this?
                          Sorry, none of the top of my head.

                          Comment


                            #58
                            In my replays I think the Bars.FirstBarOfSession is not working properly. I have my chart set to session begin at 6:30AM. I confirmed that the Bars was getting the proper session begin time via Print(Bars.SessionBegin);. When I do a simple print on Bars.FirstBarOfSession though it returns false even if it is the first bar of the session.

                            I did Print(Now+" "+Bars.FirstBarOfSession); in OnBarUpdate() and this is what it returns to me "7/26/2007 6:30:02 AM False". 6:30:02AM is definitely in the first bar and yet the bool is still returning false.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #59
                              Is this reproducible? If so, then please PM your replay file and a simple sample strategy. Thanks

                              Comment


                                #60
                                This is a bug which will be fixed with next release. Thanks for bringing this up and for proving the reproducible scenario.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by NullPointStrategies, Yesterday, 05:17 AM
                                0 responses
                                59 views
                                0 likes
                                Last Post NullPointStrategies  
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                133 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                73 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                45 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                50 views
                                0 likes
                                Last Post TheRealMorford  
                                Working...
                                X