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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      163 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      313 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X