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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
52 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
29 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
194 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
355 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
274 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment