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 NullPointStrategies, Today, 05:17 AM
|
0 responses
46 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
66 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment