Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Replay Speed Detection

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

    Replay Speed Detection

    I have not been able to find existing threads that address my question. Sorry if it has been covered.

    Is there a function accessible to NinjaScripts that will read the current replay speed setting when running with replay data?

    I have implemented a way to approximate this by comparing bar-time intervals to corresponding computer clock intervals, but it would be nice to just be able to read the replay speed setting. For my purposes, it would help if I at least knew if the setting had changed.

    #2
    Hello,

    There is no NinjaScript function to access this Unfortunately.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      Hello,

      There is no NinjaScript function to access this Unfortunately.

      Let me know if I can be of further assistance.
      Thanks Brett. I think this would be a useful thing to add to NT.

      My approach works OK, but for the sake of "safety" I do not want to base my calculations on a single bar interval, so it takes me several bars to get it right. I use the information to set a timer that I surely do not want to set too short, and is not very useful if I set it too long. If I knew the replay speed at least at the start of every bar, I could react to changes more quickly.

      Comment


        #4
        Thanks for the suggestion - I would only have the idea of adding a user input where you set the replay speed used if doing the replay, you can query this then in your custom code.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Thanks for the suggestion - I would only have the idea of adding a user input where you set the replay speed used if doing the replay, you can query this then in your custom code.
          I would prefer to leave the speed control capability in the little replay window, and somehow make the changes there readable to a script. When I do a replay I often use high speed to fast forward over parts of the day where real-time computations are being performed that I do not want to lose, but do not need to see from bar to bar, while in some places I want to slow down to see things happening. In 6.5 at least, changing a script parameter wipes out all the accumulated real-time information.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          144 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X