Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy "connections" to data provider

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

    Strategy "connections" to data provider

    NT Team,

    Please help me understand the flow of data when connected to a data provider under different situations.

    Where two Strategies are added via the Control Center, with Instrument identical, Data Series Type identical, but different Data Series Value (e.g. 5 and 15) (attached), please confirm two "connections" are made to the data provider. One for each Strategy.

    In a different situation, where a Strategy has a Primary Series (5min) and Secondary Series (15min) via AddDataSeries(), please confirm one "connection" is made to the data provider. The Strategy will "create" the second BarsArray from the primary BarsArray.

    Shannon
    Attached Files

    #2
    Hello Shansen,

    Thank you for your post.

    Only one connection is made to the Data Provider. Each instrument is requested based on the data type used. So if you request a Minute based chart and a Tick based chart, then those to historical data requests are sent to the data provider. The real-time data is the same for all data types, so only one request is made for the real-time Level I data. Level II data would be it's own request from the data provider.

    For both of your examples, one request is made for the historical minute data and one for the real-time data.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,281 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by AttiM, 02-14-2024, 05:20 PM
    11 responses
    184 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by fernandobr, Today, 09:11 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by timmbbo, Today, 08:59 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by itrader46, Today, 09:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X