Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Playback stop

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

    Playback stop

    Hi,

    Is there a method to stop the playback automatically using the strategy that is working? For example, if I have developed my strategy and I want to analyze the entries, each time an entry is generated, can I stop the playback from the strategy?

    Regards,

    Richard Martínez

    #2
    Hello Richardmm,

    Thank you for the post.

    I currently dont see a way to directly control the playback controller from NinjaScript. I will need to research this further to see if there is a way to do this or if this would be a feature request. Once I have further details I will post back here.

    I look forward to being of further assistance.

    Comment


      #3
      Hello Richardmm,

      I just received word back from product management, it looks like this item is going to be a feature request. There are currently no supported/documented ways to control replay programmatically.

      The request IDs are:
      SFT-1240 is for a PauseReplay() method.
      SFT-3262 is for all other purposes for exposed playback controls.


      I look forward to being of further assistance.
      Last edited by NinjaTrader_Jesse; 06-05-2018, 12:15 PM.

      Comment


        #4
        I think it would also be nice to add another function to playback - "Play untill new bar" instead of just play and pause... it would make playback so much better for those who use renko/range/volume etc...

        Comment


          #5
          Hello dariuszszyc,

          Thank you for the reply.

          I have put in a feature request for this, here is the Tracking ID: SFT-612

          I look forward to being of further assistance.
          Last edited by NinjaTrader_Jesse; 10-03-2018, 10:59 AM.

          Comment


            #6
            this snippet will stop the playback head when the bar index equals 60
            Code:
            if ( Cbi.Connection.PlaybackConnection != null && CurrentBar == 60)
                        {
                            NinjaTrader.Adapter.PlaybackAdapter.PlaybackSpeed = 0;
                        }​

            Comment

            Latest Posts

            Collapse

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