Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scrolling chart by X bars

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

    Scrolling chart by X bars

    Hi,

    Is it possible to scroll chart horizontally back and/or forth programmatically?

    #2
    Hello alex.nt,

    Thank you for your post.

    This is unfortunately not possible.

    Comment


      #3
      Hi alex.nt

      It is possible. You need to write a mouse emulator. It is messy but it does work. Having done it, it was more trouble than it was worth it. I ended up rethinking the project and coding it a different way.

      Comment


        #4
        Yes, tampering with mouse emulation is always an option but you are very right - in most cases it is not worth it and indeed it's better to rethink the project.

        By the way (may be someone will find that useful too), as far as I know it is possible to set margins for chart, i.e. to ensure that some drawing/text objects are still visible even though they are further than the last bar.

        Comment


          #5
          Hi alex,nt,

          Yes. It is possible to set the margins and I have done it. It does come in usefull at times.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          152 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          87 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          131 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          127 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          106 views
          0 likes
          Last Post CarlTrading  
          Working...
          X