i am working on an indicator which should be able to switch between Fixed and Automatic ChartScale.
This works fine by setting the following ChartScale Properties:
ChartScale.Properties.YAxisRangeType = YAxisRangeType.Fixed || YAxisRangeType.Automatic
ChartScale.Properties.FixedScaleMax = <double>
ChartScale.Properties.FixedScaleMin = <double>
The only problem i have, is that the Fixed Scale "F" Button does not respond to programmatically changes to these ChartScale Properties.
I've used Inspect to see if this button has an automationId, but the first parent element with an automationId is the actual TabControl (ChartWindowTabControl).
From there i would need to find my way down to the actual "F" button and try to set the visibility.
I know that this is pretty much outside of any supported Scope but could you please give me a hint what i would need to do to toggle the "F" button?
The only thing that worked until now is to use SendKeys.SendWait("{F5}") which reloads the whole chart and isn't an actual option for me.
Is there anything else i could try to trigger the method which toggles the button?
I wouldn't ask if this wasn't a pretty important feature in order for the indicator to be useful.
Thank you very much and Best Regards,
Mike

Comment