Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Market Data Question
Collapse
X
-
Market Data Question
Hi, I am using onmarketdata to look at bid and ask. My question is can I add other instruments and look at those bid and ask? Could someone point me in the right direction? Thanks.Tags: None
-
Hello 26psicivic,
Thank you for your post.
Yes, when using a multi-instrument script a subscription to OnMarketData() will be created for all bars series added to the script. You could use AddDataSeries() to add a series for whichever other instruments you would like to look at in your script, though it is important to understand that OnMarketData() can be very CPU intensive and should only be used when needed. You could filter through the different instruments in the OnMarketData() updates with marketDataUpdate.Instrument, as this is one of the MarketDataEventArgs:We have a more general guide to working with Multi-Time Frame & Instruments scripts here:Please let us know if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
132 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment