Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External data feed: Instrument mapping ignored

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

    External data feed: Instrument mapping ignored

    I am using the external data feed to send data to NT.
    I have set up a mapping for "EURUSD" in the instrument manager. I set "External" to "EUR/USD.fx". However, this mapping seems to be ignored.

    If I send data using

    Code:
    Last("EUR/USD.fx", price, volume);
    then I get nothing in NT. If I use

    Code:
    Last("EURUSD", price, volume);
    then it works.

    #2
    Please check your Control Center logs for any errors.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      No, nothing in the log.

      Comment


        #4
        I am not sure. Please try dropping the ".fx".
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          That doesn't work either (and also would defeat the purpose of having a mapping).

          Comment


            #6
            Please provide reference samples you are using so we can test with them. Thank you.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Code:
              using System;
              using System.Threading;
              using NinjaTrader.Client;
               
              class Test
              {
                  static void Main(string[] args)
                  {
                      Client nt = new Client();
               
                      while(true)
                      {
                          // Works (tick gets added to $EURUSD chart)
                          nt.Last("EURUSD", 1, 1);
               
                          // Doesn't work (even though mapping is defined)
                          nt.Last("EUR/USD.fx", 2, 1);
               
                          Thread.Sleep(1000);
                      }
                  }
              }

              Comment


                #8
                Unfortunately having "." (dot) in a external mapping is not supported.

                Comment


                  #9
                  Originally posted by NinjaTrader_Dierk View Post
                  Unfortunately having "." (dot) in a external mapping is not supported.
                  I don't think that this is the cause of the problem, as just "EUR/USD" does not work either. Actually, even using something like "ABCXYZ" (and adapting the mapping accordingly) does not work. So it seems to me that the mapping is just being completely ignored.

                  Comment


                    #10
                    I know for fact that "." would not work since I debugged. However, you are right as well, since currently external mappings for currencies are not supported at all.

                    Next NT7 update (not the one which came out today) will hold a code change to meet your requirements.

                    Thanks

                    Comment


                      #11
                      Thanks, that's good news (hopefully "." will then work as well)!

                      Comment


                        #12
                        Yes, it will as I just tested.

                        Comment

                        Latest Posts

                        Collapse

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