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 NullPointStrategies, Today, 05:17 AM
            0 responses
            52 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            130 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            70 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            43 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            47 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X