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 cmoran13, 04-16-2026, 01:02 PM
              0 responses
              43 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              25 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              163 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              98 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              158 views
              2 likes
              Last Post CaptainJack  
              Working...
              X