Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart scroll issue: jump to end instead to scroll bar-by-bar

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

    Chart scroll issue: jump to end instead to scroll bar-by-bar

    This is sequel of this thread.

    I made indicator with button on toolbar.
    Button intend to rewind chart to the last bar.
    Keyboard event Key.Right used for this.

    But, I found out, that after rewinding approximately 320 bars, chart become dark and jump to the very last bar. Here is video: http://take.ms/MzymA

    What can be the reason, and how to preventing jumping to the end of chart?
    How to let cart to scroll bar-by-bar?
    Any idea appreciated.
    Attached Files
    Last edited by fx.practic; 01-31-2018, 11:14 AM.
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello,

    Thank you for the post.

    I am currently reviewing the sample you provided, once I have further reviewed your logic, I will reply back here.

    I look forward to being of further assistance.

    Comment


      #3
      Thank You, Jesse.

      I found decision, that work for me: SendKeys.Flush(); clear keyboard buffer.
      I looks ugly because of mixing WPF and Windows.Forms approaches.
      So, I will appreciate if You can point me to more correct way.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Didn't You find any ways to clear keyboard buffer using WPF methods only?
        fx.practic
        NinjaTrader Ecosystem Vendor - fx.practic

        Comment


          #5
          Hello,

          Thank you for the reply.

          No, I had not, I am unaware of any WPF specific solutions for the purpose of flushing the keyboard buffer. Generally, we don't suggest mimicking the keyboard programmatically from NinjaScript as it can cause complications. If you have found a solution that resolves the initial concern you had, I would likely suggest using that after testing and making sure it resolves the initial concern.

          Please let me know if I may be of further assistance.

          Comment


            #6
            Thank You for clear answer.
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            646 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            367 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            107 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            569 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X