Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sim Account Case NtDirect.dll

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

    Sim Account Case NtDirect.dll

    My sim account listed in the platform is Sim101, but orders using the NtDirect dll seems to require SIM101.
    Is this correct?

    #2
    Hello Atomic,

    Thank you for your post.

    You'd want to use "Sim101" not SIM101. I've tested and the following would submit a limit order at the specified price on the Sim101 account:

    Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "LIMIT", 4512.00, 4513.00, "DAY", "", "MyOrder", "", "");

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Kate View Post
      Hello Atomic,

      Thank you for your post.

      You'd want to use "Sim101" not SIM101. I've tested and the following would submit a limit order at the specified price on the Sim101 account:

      Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "LIMIT", 4512.00, 4513.00, "DAY", "", "MyOrder", "", "");

      Please let us know if we may be of further assistance to you.
      For the longest time, that's what I thought, but right now, it seems I have to use upper case. Here is an example.
      First I submitted TestOrder7873 using account name SIM101, and the order was immediately processed.
      Then I submitted TestOrder4506 using account name Sim101 and there was never an execution. Everything else is the same except the account name. The actual account name in the NT Platform is Sim101 (lower case).

      Click image for larger version  Name:	NT-TestOrder.PNG Views:	0 Size:	20.9 KB ID:	1195229
      Last edited by Atomic; 03-25-2022, 10:17 AM.

      Comment


        #4
        Hello Atomic,

        Thank you for your reply.

        Looks like you are using OIF files, not the DLL interface to place orders. Is that correct? My answer above is for the DLL interface.

        Here's an example of an OIF command for a market order, for that you would use SIM101:

        PLACE;SIM101;ES 03-22;BUY;1;MARKET;0;0;DAY;;;;

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Kate View Post
          Hello Atomic,

          Thank you for your reply.

          Looks like you are using OIF files, not the DLL interface to place orders. Is that correct? My answer above is for the DLL interface.

          Here's an example of an OIF command for a market order, for that you would use SIM101:

          PLACE;SIM101;ES 03-22;BUY;1;MARKET;0;0;DAY;;;;

          Please let us know if we may be of further assistance to you.
          I am using dll. That is all I have ever used.

          Comment


            #6
            I have a hunch that when I reboot everything it will go back to the way it was

            Comment


              #7
              Hello Atomic,

              Thank you for your reply.

              I've put this line in the Ninja7Api example here so it submits it from one of the button presses, and I'm seeing this work with NinjaTrader 7:



              Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "MARKET", 0, 0, "DAY", "", "MyOrder", "", "");

              When capitalized, it looks like it tries to place the order but never actually submits.

              Please let us know if we may be of further assistance to you.
              Kate W.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Kate View Post
                Hello Atomic,

                Thank you for your reply.

                I've put this line in the Ninja7Api example here so it submits it from one of the button presses, and I'm seeing this work with NinjaTrader 7:



                Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "MARKET", 0, 0, "DAY", "", "MyOrder", "", "");

                When capitalized, it looks like it tries to place the order but never actually submits.

                Please let us know if we may be of further assistance to you.
                I know what you are saying, but right now, it works the opposite for me.

                Comment


                  #9
                  Once I restarted my computer it went back to accepting the lower case account number.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by wzgy0920, 04-20-2024, 06:09 PM
                  2 responses
                  27 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, 04-23-2024, 09:53 PM
                  2 responses
                  49 views
                  0 likes
                  Last Post wzgy0920  
                  Started by Kensonprib, 04-28-2021, 10:11 AM
                  5 responses
                  193 views
                  0 likes
                  Last Post Hasadafa  
                  Started by GussJ, 03-04-2020, 03:11 PM
                  11 responses
                  3,235 views
                  0 likes
                  Last Post xiinteractive  
                  Working...
                  X