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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
388 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
260 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
218 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
302 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
268 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment