Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay: Time and Speed

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

    Market Replay: Time and Speed

    Hello All

    I have a question about time in Market Replay mode. My strategy has a condition that uses a pause between two checks. This pause is 10 seconds. In real-time mode, it works well. I use DateTime.Now, but when I try to use the strategy in Market Replay with increased speed, the pause remains 10 seconds (of course ). I can't use Time[0] because my strategy works in OnEachTick.

    Could you help me with Market Replay time conditions? What should I use to save the current time from the Market Replay chart? I need to save the current chart time, add 10 seconds (this will be the EndPauseTime), and compare the current chart time with EndPauseTime.

    Thank you.

    #2
    Hello vitaly_p,

    You can check if the connection is playback with:
    Cbi.Connection.PlaybackConnection != null

    You can get the playback time with:
    Cbi.Connection.PlaybackConnection.Now
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea!

      It's working well!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      128 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      117 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X