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 CarlTrading, Yesterday, 11:51 AM
|
0 responses
16 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:51 AM
|
||
|
Started by CarlTrading, Yesterday, 11:48 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
13 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
20 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment