• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Zoom

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

    Chart Zoom

    Hi,

    Is it possible to programatically find and set/reset the zoom level of a chart. I know there are internal variables called zoomX and zoomY, etc. but they do not seem to be accessible. Is there any way to access these values?

    If not, is it possible to programatically invoke ZoomOut without sending the key sequence? Any pointers here would be greatly appreciated. Thank you.

    #2
    Hello Zeos6,

    There is not a supported way to programatically set a zoom level in a chart, or to programatically call a key sequence inside of NinjaScript.

    With that said, you can view the following post that talks about calling a key stroke programatically that you may view.
    http://www.ninjatrader.com/support/f...ad.php?t=37514

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Hi JC,

      Thanks for your reply. I know how to call a key sequence. What I am asking for - even a hint - is how to access zoom level or even an Event if the Chart was zoomed, etc. I know these are all unsupported but a hint would be appreciated. Thank you.

      Comment


        #4
        Hello Zeos6,

        Thanks for the clarification on that. While, I do not have experience working with the Zoom inside of a chart you could look into the ChartControl Object. This would have Axis scale, range properties and even set some bar properties in it that may be a way of change your chart they way you want to set it. For Example:
        Code:
        ChartControl.BarWidth = 9;
        To change the Bars width to 9. Note that this would be something thing that is unsupported.

        Maybe a member of the community has experience working with the Zoom.
        JCNinjaTrader Customer Service

        Comment


          #5
          Hi JC,

          Thank you for your email. I am aware of many of the ChartControl objects and yes, I am aware of BarWidth. The issue is zooming. I can rescale my chart if it had been zoomed but the ZoomOut tool in the tool bar is highlighted and I would clean it up. There does not appear to be a zoom event handle rof any sort and many of the zoom variables are not exposed in ChartControl.

          Comment


            #6
            Hello Zeos6,

            I will leave this thread open to the community if anyone has experience with Zoom inside of NinjaScript that may be able to help you further.
            JCNinjaTrader Customer Service

            Comment


              #7
              Thank you very much JC. It is appreciated.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by PeterGolz, 01-17-2020, 10:42 AM
              11 responses
              72 views
              0 likes
              Last Post reubenlasky  
              Started by utilizator, Today, 11:36 AM
              0 responses
              4 views
              0 likes
              Last Post utilizator  
              Started by EnveousColnago, Today, 07:24 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Started by tornadoatc, Today, 10:31 AM
              0 responses
              3 views
              0 likes
              Last Post tornadoatc  
              Started by EnveousColnago, Yesterday, 05:43 PM
              5 responses
              30 views
              0 likes
              Last Post EnveousColnago  
              Working...
              X