Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Which market data provider ?

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

    Which market data provider ?

    My main broker IB doesn't allow to open the real platform simultaneously on two different PCs. Hence, since I do need 2 computers for my trading, I must configure Ninja to run with two different market data providers. This is normally not a problem, because Ninja allows several connections at a time, but it may happen that one broker uses other symbols than the second one (for istance, FXCM trades CFD instead of futures).
    As I noticed, this is involved with some troubles, so Ninja doesn't add all instruments that it is supposed to find. As a consequence, I'm forced to configure my script to recognize the actual data provider, and to change the symbols accordingly between futures and CFD (as an example: if we are connected to IB, add XX 06-16; otherwise add YYYY).
    Question: how and where may my code understand where its data come from ?

    #2
    Hello fliesen,

    Thank you for your post.

    This is not supported, but you could use the following:
    Code:
    if(Bars.MarketData.Connection.Name == "My Connection Name")
    Print("Connected to My Connection Name");

    Comment


      #3
      I know very well which connection is on (it appears in the control menu too).
      It's my code that must know it, and as far as I understand, the offered expression
      if(Bars.MarketData.Connection.Name == "My Connection Name")
      should give my code this chance.

      So why do you write "This is not supported" ?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X