Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Read Control Center Order Colors?

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

    How to Read Control Center Order Colors?

    Hello!

    Is there an easy way to read the various order type colors from the Control Center?
    I'm trying to dynamically update some colors in my indicator to match the color of the associated order type.

    (The attached screenshot shows the colors to which I'm referring.)

    I've been searching everywhere and can't seem to find these readily available.

    Thoughts?

    #2
    Hello MarkWise,

    Thanks for your message.

    We don't offer any documented/supported way to fetch properties of the Orders tab or the Control Center through NinjaScript.

    I will leave this thread open for any community member's input on accomplishing this task.

    If you have any other questions, please don't hesitate to open a new thread.

    Comment


      #3
      Thanks for the info Jim.

      I was able to get what I needed by pulling values from the Chart Trader as shown in the code below. Hopefully others might find this helpful.


      Code:
      
      Chart chartWindow = System.Windows.Window.GetWindow(owner.ChartControl.Parent) as NinjaTrader.Gui.Chart.Chart;
      if (chartWindow != null)
      {
       ChartTrader chartTrader = Window.GetWindow(chartWindow.ActiveChartControl.Parent).FindFirst("ChartWindowChartTraderControl") as NinjaTrader.Gui.Chart.ChartTrader;
       if (chartTrader != null)
       {
      
        StopOrderLineBoxBrush = (SolidColorBrush)chartTrader.Properties.StopLoss.Brush;
      
        TargetOrderLineBoxBrush = (SolidColorBrush)chartTrader.Properties.ProfitTarget.Brush;
      
      
       }
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      83 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      65 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      57 views
      0 likes
      Last Post CarlTrading  
      Working...
      X