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.
    BrandonNinjaTrader Customer Service

    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
        BrandonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AdamDJ8, Today, 09:18 PM
        0 responses
        0 views
        0 likes
        Last Post AdamDJ8
        by AdamDJ8
         
        Started by knowmad, Today, 03:52 AM
        2 responses
        26 views
        0 likes
        Last Post knowmad
        by knowmad
         
        Started by ETFVoyageur, Today, 07:05 PM
        0 responses
        7 views
        0 likes
        Last Post ETFVoyageur  
        Started by Orion815, 05-02-2024, 08:39 AM
        2 responses
        18 views
        0 likes
        Last Post Orion815  
        Started by suroot, 02-25-2017, 04:43 AM
        11 responses
        2,552 views
        0 likes
        Last Post Zilvercat  
        Working...
        X