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.
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 WHICKED, Today, 12:45 PM
|
2 responses
17 views
0 likes
|
Last Post
by WHICKED
Today, 03:36 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
15 responses
3,272 views
0 likes
|
Last Post Today, 03:15 PM | ||
Started by Tim-c, Today, 02:10 PM
|
1 response
8 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
51 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
Comment