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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      52 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      29 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      193 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      354 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      274 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X