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

how to get and compare data from different feeds?

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

    how to get and compare data from different feeds?

    Hello Ninjatraders,

    i loaded the free simulating version and read through the manual to get into the program and how to use ninjascript, but there is one thing i still not understand:
    For every tick(or end-of-bar) onbarupdate is called, and i can distinguish different instruments with barsinprogress. But how can i distinguish different datafeeds/brokers?

    As i see it, the broker is somewhat linked to an account, and you set the account for the strategy so this is the account the strategy trades on. It is not possible to trade to another account/broker within this strategy then?

    Second, how can i get data from two different feeds?
    For example i have ZenFire as primary feed and the second feed in the row is let's say IB. Now all my data come from ZenFire, but how can i access the IB data feed when i want to? (Without changing the order of the feeds. So i don't care about the order, i just want from both stream all the input. Or from one feed the steady input with the possibility to ask the prices on the other stream)

    Thanks for response,
    greetings

    #2
    Welcome to our forums - all data will be taken from your primary connection, you could unfortunately not deliberately pick instrument streams from different connections - only if the primary connection fails completely or it could not offer a symbol category a second connection would support > it would take the second connection then as 'driving' data source.

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for your quick response!

      Just to get it straight, it is not possible to check the prices from my broker while being connected to a datafeed?

      Comment


        #4
        Correct. If you connected to your data feed provider first, all prices come from them and not from your brokerage. This is not to be confused with prices you actually get filled at though. Fill prices always come from your brokerage as ultimately they are they one handling your trades.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        192 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,234 views
        0 likes
        Last Post xiinteractive  
        Working...
        X