Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              574 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              333 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X