Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any way to Determine if Fixed Scale Button Clicked?

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

    Any way to Determine if Fixed Scale Button Clicked?

    Question for the community: Is there a way to determine if the Fixed Scale [F] button has been clicked?

    I need this for some custom rendering I'm doing but have yet to find a way... There doesn't seem to be a chart control event that fires NOR does hooking into the button's Click event seem to work...

    Anyone have any ideas?



    #2
    Hello MarkWise,

    I think this would be the ChartBars.Properties.YAxisRangeType.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the quick reply Chelsea.

      I see that property on ChartScale, not on ChartBars.

      But how would one know programmatically if that value changed? When I hook into the "PropertyChanged" event, only the MaxValue and MinValue properties change, but NOTHING fires when the Fixed Scale button is clicked (or restored, in this case.)

      From my research, it appears this functionality doesn't exist. But I thought I'd check.

      Comment


        #4
        Hello MarkWise,

        That was my mistake. I said ChartBars when I meant ChartScale, but somehow provided the correct link.

        There is no event available to NinjaScripts when this is clicked.

        You could record the value of this property to a variable in DataLoaded to see what the state is as your script gets started, and then on each bar update check to see if the variable matches the property. If they don't, it changed.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks Chelsea. That's helpful.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          637 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          366 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          571 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X