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 NullPointStrategies, Today, 05:17 AM
      0 responses
      20 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      119 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X