NinjaTrader.Cbi.InstrumentList.GetInstruments("Futures");
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NinjaTrader.Cbi.InstrumentList.GetInstruments()...
Collapse
X
-
Hello,
Thank you for the question.
It appears the method you are using would not be the correct method to get a list, it seems instead you would need to use the underlying collection.
You would either need to loop through the instrument list collection to find the list first, or use linq to find a match in the instrument list. I have provided an example using linq to cut down the size:
Code:InstrumentList myList = NinjaTrader.Cbi.InstrumentList.InstrumentLists.First(list => list.Name == "FOREX"); if (myList == null) return; foreach (Instrument instrument in myList.Instruments) { Print(instrument.FullName); }
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, Yesterday, 10:06 AM
|
0 responses
17 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
16 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
14 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
9 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
36 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment