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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment