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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              558 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              324 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              545 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              547 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X