Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Data Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X