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, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      47 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X