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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      663 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      376 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X