I added my own color parameter but would be nice if I can use something that already existed.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
instrument/interval linking color
Collapse
X
-
Hello ct,
Thank you for your note.
If you were to use the following code in OnBarUpdate, you will see prints for both the instrument link color as well as interval link color.
Please let us know if you need further assistance.Code:ChartControl.Dispatcher.InvokeAsync((Action)(() => { // Below prints the Instrument Link Color (The right colored button to left of "-""Box""X" xColorInstrumentLink = Window.GetWindow(ChartControl.Parent).FindFirst("ChartInstrumentLinkControlComboBox") as System.Windows.Controls.ComboBox; NinjaTrader.Gui.Tools.LinkControlItem selectedInstrumentLinkItem=xColorInstrumentLink.SelectedItem as NinjaTrader.Gui.Tools.LinkControlItem; Print("selectedInstrumentLinkItem " + selectedInstrumentLinkItem.Text); // Below prints the Interval Link Color (The left colored button to left of instrument link color next to "-""Box""X" xColorIntervalLink=Window.GetWindow(ChartControl.Parent).FindFirst("ChartIntervalLinkControlComboBox") as System.Windows.Controls.ComboBox; NinjaTrader.Gui.Tools.LinkControlItem selectedIntervalLinkItem=xColorIntervalLink.SelectedItem as NinjaTrader.Gui.Tools.LinkControlItem; Print("selectedIntervalLinkItem " + selectedIntervalLinkItem.Text); }));Alan P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
116 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
163 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
83 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
127 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
87 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment