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 sjsj2732, Today, 04:31 AM
              0 responses
              20 views
              0 likes
              Last Post sjsj2732  
              Started by NullPointStrategies, 03-13-2026, 05:17 AM
              0 responses
              280 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              279 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              130 views
              1 like
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              90 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Working...
              X