Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pause Playback at close of bar.

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

    Pause Playback at close of bar.

    I like using the playback connection for my 2000 tick chart. The playback speeds for 2x, 4x, etc. are not useful. I want to look at the chart only after the next bar has closed. After the bar has closed I want the playback to pause so I can examine the impact on my chart and then resume playback until the next bar closes. Can I write an indicator which will accomplish this task?

    #2
    Hello robertlaub,

    Thank you for your post.

    Unfortunately, there is no supported means to control the Playback speed or start/pause Playback via NinjaScript.

    Comment


      #3
      Thank you for the quick response.

      Is it possible to cause a keyboard press or a mouse click from a ninjascript?

      Comment


        #4
        Hello,

        Do you mean detect a key press or mouse click?

        Below is a link to an example that captures mouse clicks.



        And a link to an example of capturing keypresses.

        https://forum.ninjatrader.com/forum/...756#post831756

        Comment


          #5
          No, I do not want to capture them. I want to create them. So, for instance, if the play button on the Playback window has focus, I can manually click the mouse or press the space bar to pause playback. If I can do the same action inside an indicator, then I can "manually" pause playback when the bar closes without touching the keyboard.

          Comment


            #6
            No, if there were, then that would a way to control the Playback control - but as previously mentioned that is not supported.

            Comment


              #7
              Can I open a socket or a file from inside ninjascript?

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CaptainJack, 05-29-2026, 05:09 AM
              0 responses
              239 views
              0 likes
              Last Post CaptainJack  
              Started by CaptainJack, 05-29-2026, 12:02 AM
              0 responses
              155 views
              0 likes
              Last Post CaptainJack  
              Started by charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              164 views
              1 like
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              247 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              199 views
              0 likes
              Last Post CarlTrading  
              Working...
              X