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

Determine if Range/Return Icon is Visible?

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

    Determine if Range/Return Icon is Visible?

    Hello!

    Is it possible to programmatically determine if the Range icon is visible on the upper right corner of the chart?

    I'm using OnRender() to custom paint some information and I would like to bump that information down if the icon is visible.

    Is this possible?

    Thanks in advance!

    #2
    Hello MarkWise,

    Thank you for your post.

    You can use the ChartScale Properties to do this. For example:
    Code:
    		protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
    		{         
    			if (chartScale.Properties.YAxisRangeType == YAxisRangeType.Automatic)
    			{
    				// do something
    			}
    		}
    For more information please visit the following link: http://ninjatrader.com/support/helpG...properties.htm

    Please let me know if you have any questions.

    Comment


      #3
      Thanks for the reply, Patrick.

      I must be missing something because I don't see how the "Y Scale" properties would indicate if the "Range" symbol is displayed.

      To be clear, I'm referring to the symbol located under the "Range Icon" section here:


      Thoughts?

      Comment


        #4
        Hello MarkWise,

        Thank you for your response.

        When the small 'F' is shown the YAxisRangeType will return Fixed.

        Please let me know if you have any questions.

        Comment


          #5
          I understand that one. But what about the black button that looks like "<|"? That's the one I'm wondering about...

          I guess, I'm trying to figure out if the user has panned the chart left or right. That's when the "<|" and "|>" symbols appear.
          Last edited by MarkWise; 06-29-2017, 01:09 PM.

          Comment


            #6
            Hello MarkWise,

            Thank you for your response.

            You can use ChartControl.IsScrollArrowVisible: http://ninjatrader.com/support/helpG...rowvisible.htm

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

            Comment


              #7
              Exactly what I was looking for.

              Thanks Patrick!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by marcus2300, Today, 07:02 AM
              1 response
              7 views
              1 like
              Last Post NinjaTrader_ChristopherJ  
              Started by RaddiFX, Today, 01:25 PM
              2 responses
              5 views
              0 likes
              Last Post RaddiFX
              by RaddiFX
               
              Started by Dennys Vera, Today, 01:00 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by dtl-saw, 12-29-2022, 09:12 AM
              50 responses
              3,505 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by RichardSobe, Today, 01:00 PM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Working...
              X