Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OIF Cancel command not working with APEX

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

    OIF Cancel command not working with APEX

    Hello,
    I'm placing two OIF commands,Place and after 10 seconds Cancel, Cancel works in SIM account and not in Apex (real time).
    ID is 2, Strategy is Ninja

    PLACE;APEX-xxxx-08;MES 09-24;BUY;1;Limit;5644.5;;DAY;;2;Ninja;
    CANCEL;APEX-xxxx-08;;;;;;;;;2;;

    #2
    Hello marwanco,

    This might be an issue with the account name.

    Are there errors appearing on the Log tab of the Control Center?

    May I confirm you are using the Name and not the DisplayName (as would appear on the Accounts tab of the Control Center)?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for reply,
      The same account name is able to place Buy Limit order, but not able to cancel it.
      This works in SIM account.

      Comment


        #4
        Hello marwanco,

        Are you certain you are providing the correct order id (as shown on the Orders tab of the Control Center after the order becomes working)?

        What do you see on the Log tab of the Control Center?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello Chelsea,
          1.I provide Used ID=2 while placing and cancelling .
          2.In Orders tab ID= is much bigger number like 1734313076

          3.This is the log for both accounts:
          Apex account
          8/29/2024 4:36:50 PM ATI OIF, 'CANCEL;;;;;;;;;;2;;' processing
          8/29/2024 4:36:46 PM Order Order='1735017444/APEX-xxxx-08' Name='Entry' New state='Working' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:36:46 PM Order Order='1735017444/APEX-xxx-08' Name='Entry' New state='Accepted' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:36:46 PM Order Order='9d8b238799d64a7a82b6c02b3d35918e/APEX-xxxx-08' Name='Entry' New state='Submitted' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:36:45 PM Order Submitting order with strategy
          8/29/2024 4:36:45 PM ATI OIF, 'PLACE;APEX-xxxx-08;MES 09-24;BUY;1;Limit;5600;;GTC;;2;Ninja;' processing


          SIM account
          8/29/2024 4:42:01 PM Order Order='ccda176ed0304c85bd2a5834d21e8f94/Sim101' Name='Entry' New state='Cancelled' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:42:01 PM Order Order='ccda176ed0304c85bd2a5834d21e8f94/Sim101' Name='Entry' New state='Cancel submitted' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:42:01 PM ATI OIF, 'CANCEL;;;;;;;;;;2;;' processing
          8/29/2024 4:41:56 PM Order Order='ccda176ed0304c85bd2a5834d21e8f94/Sim101' Name='Entry' New state='Working' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:41:56 PM Order Order='ccda176ed0304c85bd2a5834d21e8f94/Sim101' Name='Entry' New state='Accepted' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:41:56 PM Order Order='ccda176ed0304c85bd2a5834d21e8f94/Sim101' Name='Entry' New state='Submitted' Instrument='MES 09-24' Action='Buy' Limit price=5600 Stop price=0 Quantity=1 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
          8/29/2024 4:41:56 PM Order Submitting order with strategy
          8/29/2024 4:41:56 PM ATI OIF, 'PLACE;Sim101;MES 09-24;BUY;1;Limit;5600;;GTC;;2;Ninja;' processing

          Comment


            #6
            Hello marwanco,

            What is appearing after the OIF message is processed?

            Is there message the order cannot be found?

            Is the cancellation rejected?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Nothing, this is the last line .
              8/29/2024 4:36:50 PM ATI OIF, 'CANCEL;;;;;;;;;;2;;' processing

              Comment


                #8
                Hello marwanco,

                Try supplying the Order ID shown in the Orders tab of the Control Center for the order.

                Does this cancel the order properly?

                If not, may I have you send an email to scriptingsupport [at] ninjatrader.com so that I may request your log and trace files and investigate further?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello Chelsea,
                  I realised that only with ID=2 Cancel doesn't work.
                  With ID 1,3,4 ... it work!

                  Thank you

                  Comment


                    #10
                    Hello marwanco,

                    Are you re-using IDs? That would cause an issue.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Hello Chelsea,
                      No I increment ID with each order, I was starting with 1.
                      Now I will start with 100.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      579 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      334 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      101 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      554 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      551 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X