• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling Orders with COMMAND not working

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

    Cancelling Orders with COMMAND not working

    I am making BUY SELL calls through my own software using DOS commands which are faster than using the Place function which is part of the dll infrastructure. But, because of this, I believe I have run into difficulty in cancelling orders using the COMMAND function. I continue to get a VALUE# error when entering the required parameters including the Order ID. I believe that the only way it will work is if the order was placed through the PLACE command and it must have associated with it a valid strategy ID that was entered as part of the PLACE execution. Is there any way around this problem or do I have to sit down and reprogram again. Perhaps there is another function other than COMMAND that can be used to cancel an order.

    #2
    sdruley,

    Someone will be responding to you early tomorrow morning. Thanks for your patience.
    MatthewNinjaTrader Product Management

    Comment


      #3
      sdruley, correct the order id has to match the one assigned through the PLACE call, or if you've assigned /executed an ATM strategy as well, you could reference the order through the name directly (TARGET1 for example).

      http://www.ninjatrader.com/support/h...parameters.htm

      There's a CANCELALLORDERS as well available, but likely not optimal for your case so reprogramming to take the above into consideration would be best I feel.
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Mr. Bertrand,

        Can I execute a cancel order with just an ATM strategy whilst not in the possession of the Place command as your note suggests?

        Comment


          #5
          You cannot execute a CancelOrder standalone, it has to be for an order started first via the PLACE Command, if you've attached an ATM or not, does not matter in this context.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            I currently have the following commands:
            COMMAND
            FILLED
            MARKET POSITION
            ORDERS
            ORDERSTATUS
            REALIZEDPnL
            GETHASHCODE
            GETTYPE
            TOSTRING

            If I program in the Trade function, can you think of any other function that i might need?

            Comment


              #7
              You can simply keep this list as reference handy as you program your interface - http://www.ninjatrader.com/support/h.../functions.htm
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jleira, Today, 10:26 PM
              0 responses
              4 views
              0 likes
              Last Post jleira
              by jleira
               
              Started by wuileng, Today, 10:14 PM
              0 responses
              6 views
              0 likes
              Last Post wuileng
              by wuileng
               
              Started by mntemel, Today, 09:07 PM
              1 response
              10 views
              0 likes
              Last Post MojoJojo  
              Started by martyn73, Today, 08:22 PM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_Marco  
              Started by RobertoPaez, Today, 08:13 PM
              0 responses
              6 views
              0 likes
              Last Post RobertoPaez  
              Working...
              X