Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to widen Bar Type selector/text box on chart?

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

    How to widen Bar Type selector/text box on chart?

    Hi there,

    I did a search for this topic but to no avail. I also spent a little time perusing the jungle of XAML within the Skins folder as well. So, I tried......

    I desire to widen the drop down BarType selector on top of the chart toolbar. Please see image attached. As you can see I have to compress the name of my bar types to silly abbreviated strings and since I am not inhibited by horizontal constraints I wouldn't mind widening the box as pictured.

    Thank you.
    Attached Files

    #2
    Hi Sim22,

    This would be outside of what is supported by NinjaTrader.

    But, I will confer with our development and do a little testing when we have resources available to see what I can find out for you.

    Its a WPF element and you can use MSInspect to find out what it is.. the intellisense / class view in visual studio should give some tips on how to manipulate..should you want to find an answer before I do.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Sim22,

      Code:
      NinjaTrader.Gui.Tools.IntervalSelector selector = null;
      
      foreach (System.Windows.DependencyObject item in (System.Windows.Window.GetWindow(ChartControl.Parent) as Chart).MainMenu)
      {
      	if (System.Windows.Automation.AutomationProperties.GetAutomationId(item) == "ChartWindowIntervalSelector")
      	{
      		selector = item as NinjaTrader.Gui.Tools.IntervalSelector;
      	}
      }
      
      
      if (selector != null)
      	selector.Width = 200;
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thank you Chelsea for your reply. I always appreciate your efforts

        So basically I add this to my State == State.Configure within all my custom bartypes?

        Comment


          #5
          Hello Sim22,

          This is something that you would want to do from an indicator.

          Indicators would be used primarily to make UI modifications to a chart.

          There is not a ChartControl object available to bar types.

          You may be able to add this to a ChartStyle though.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hmmm....little dodgy for my liking....though I thank you for your effort

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            65 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X