Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling an Order with "COMMAND"

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

    Cancelling an Order with "COMMAND"

    I have the following details:

    Order ID in Cell A1
    SIM101
    ES 09-12

    Is this the correct format for the COMMAND function if my goal is to cancel an order?

    COMMAND("Cancel", "SIM101", "ES 09-12", ,,,,,,,"A1",,)

    This command has a lot of stuff to it.

    #2
    sdruley, from where do you attempt calling the COMMAND function via the AT Interface?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Cancelling an Order with "COMMAND"

      Originally posted by NinjaTrader_Bertrand View Post
      sdruley, from where do you attempt calling the COMMAND function via the AT Interface?
      I am using a dll to communicate with the various functions available

      Comment


        #4
        Thanks, correct then you would be looking to work the COMMAND call here. Is this the order id you assigned in the PLACE order call?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Cancelling an Order with "COMMAND"

          Yes, the final format is as follows:

          HTML Code:
          Command("Cancel","SIM101","ES 09-12", ,,,,,,,"$C$9")
          Is it permissible to refer to the Order ID through a cell reference? [$C$9]

          Comment


            #6
            That should work fine, if it's explicitly passed as string value to the call.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Cancelling an Order with "COMMAND

              I have decided to take the quotes away from the $C$9 cell reference. maybe this will make it work properly.

              Comment


                #8
                What error do you get please with the call? Anything noted in NT's Log tab?
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  No error logged but I think that it is connected to the change I made in the instruments. Is this right?

                  ES 09-12
                  YM 09-12

                  Comment


                    #10
                    Those would become fronth month today once the US session starts to mature, so I don't see an issue stemming from there. So the position entry via the PLACE Command is ok, just the Cancellation then not? If you submit it via the OIF file builder for testing (essentially using the same calls), same behavior?

                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Bertrand View Post
                      Those would become fronth month today once the US session starts to mature, so I don't see an issue stemming from there. So the position entry via the PLACE Command is ok, just the Cancellation then not? If you submit it via the OIF file builder for testing (essentially using the same calls), same behavior?

                      http://www.ninjatrader.com/support/h...if_builder.htm
                      Not sure, I need more time to test this function.

                      Comment


                        #12
                        Ok, sounds good, please let me know what you find if you don't mind.
                        BertrandNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by DJ888, 04-16-2024, 06:09 PM
                        4 responses
                        12 views
                        0 likes
                        Last Post DJ888
                        by DJ888
                         
                        Started by terofs, Today, 04:18 PM
                        0 responses
                        11 views
                        0 likes
                        Last Post terofs
                        by terofs
                         
                        Started by nandhumca, Today, 03:41 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post nandhumca  
                        Started by The_Sec, Today, 03:37 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post The_Sec
                        by The_Sec
                         
                        Started by GwFutures1988, Today, 02:48 PM
                        1 response
                        9 views
                        0 likes
                        Last Post NinjaTrader_Clayton  
                        Working...
                        X