Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay Speed Control Method in NinjaScript

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

    Market Replay Speed Control Method in NinjaScript

    Market Replay is a great tool for testing realtime strategies. However, if testing over many days, it can be very cumbersome and time consuming, particularly if you want to slow down or pause the replay to watch what is going on when certain things happen. It would be very useful if the market replay speed could be controlled by a method call from within the NinjaScript code as follows:

    MarketReplaySpeedControl( int speed );

    What a potential use for this method might look like in a strategy:
    Code:
    if (strategyStartCondition)
       MarketReplaySpeedControl( 500 );
    if (entryCondition)
       MarketReplaySpeedControl( 1 );
    if (exitCondition && Position.MarketPosition = MarketPosition.Flat)
       MarketReplaySpeedControl( 500);
    if (endofweekCondition)
       MarketReplaySpeedControl (0); // Pause
    The speed set by this method could always be modified by the manual Market Replay controls.

    Thank you for your consideration of this idea.

    Whitmark
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    Hello Whitmark,

    Thanks for your post.

    I have submitted your suggestion for the enhancement of NinjaTrader to our development team. We appreciate your commitment in helping us to improve NinjaTrader.

    Comment


      #3
      It would also be nice to have a control that said - move to the next RTH start of session - so you wouldn't have to go through all the time (even at 500x) for the data after 4:30 PM

      Comment


        #4
        Hello mgabriel01,

        Thanks for your reply.

        I will forward your suggestion to our development team also.
        Thanks for your feedback to improve NinjaTrader

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        132 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        74 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        117 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        113 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        89 views
        0 likes
        Last Post CarlTrading  
        Working...
        X