Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Which symbol should I pass to NTCommand()?

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

    Which symbol should I pass to NTCommand()?

    Hello,

    I am using eSignal EFS + NT DLL to auto trade my IB accounts. Because NT is only used as a bridge between EFS and IB TWS for order transmission purpose, I set NT only fed by IB TWS data. In EFS, when calling NT DLL functions, which symbol format should I use? Should I use IB's symbol format instead of getSymbol()? Currently when I trade CL N8 and NG M8, the instrument of orders are not mapped correctly ( CL N8 orders in EFS are eventually shown as a stock with CL in IB TWS and NG M8 is shown in NT as something starting with "HHxxx" and never shown in IB TWS. There is no problem when trading YM, NQ and ES. Can someone help me how to set instrument mapping correctly? Thanks.

    - Clearpicks

    #2
    Use NinjaTrader format.

    For June ES would be "ES 06-08" for example.
    RayNinjaTrader Customer Service

    Comment


      #3
      Could you explain how NT DLL or NT itself map these symbols? What are the rules and priorities it uses if there are multiple entries can be found? Why was "CL N8=1" mapped to the stock "CL" when I only created the NYMEX futures contract "CL 06-08" in the NinjaTrader instrument list? Thanks.

      - Clearpicks

      Comment


        #4
        >> if there are multiple entries can be found?
        You should not do that to avoid random effects and confusion.

        >> Why was "CL N8=1" mapped
        Sorry, I don't know.

        Comment


          #5
          I did not created duplicate entries in instrument list. My question was since there were both CL for stock and CL for futures in the database, if the symbol passed to NT DLL can not be mapped to any instument in the instrument list, how does NT automatically map to something from its database. Actually for safty reason, NT DLL should never execute any trades if the instrument is not recognizable. In my case, when I passed "CL N8=1" as a parameter to NTCommand, ithat instrument should never be mapped to the CL stock since the stock CL was not in my instrument list.

          Anyway, your solution of passing symbol in NT format worked. Thanks.


          - Clearpicks


          Originally posted by NinjaTrader_Dierk View Post
          >> if there are multiple entries can be found?
          You should not do that to avoid random effects and confusion.

          >> Why was "CL N8=1" mapped
          Sorry, I don't know.

          Comment


            #6
            >> should never be mapped to the CL stock since the stock CL was not in my instrument list
            Incorrect. The CL is setup in the default DB and that's what matters. Instrument list(s) are irrelevant

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            88 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            48 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            30 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            34 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            68 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X