Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 bortz, 11-06-2023, 08:04 AM
              47 responses
              1,603 views
              0 likes
              Last Post aligator  
              Started by jaybedreamin, Today, 05:56 PM
              0 responses
              8 views
              0 likes
              Last Post jaybedreamin  
              Started by DJ888, 04-16-2024, 06:09 PM
              6 responses
              18 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by Jon17, Today, 04:33 PM
              0 responses
              4 views
              0 likes
              Last Post Jon17
              by Jon17
               
              Started by Javierw.ok, Today, 04:12 PM
              0 responses
              12 views
              0 likes
              Last Post Javierw.ok  
              Working...
              X