Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Cancelled Order Confirmation ?

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

    Cancelled Order Confirmation ?

    What's the best way to assure that all my orders have been cancelled ?

    #2
    Hello spottysallrite,

    Thank you for your post.

    To clarify, do you mean active orders from a single strategy, every order including manual orders on the overall account, or all orders on a particular instrument and account combination? Are you looking to do this from a strategy or manually through the platform UI?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Right. This would be entirely for active orders produced by a single strategy. That is, before entering any orders for the next trade I want to make sure there are no currently active orders that might not have been cancelled from any previous activity. And, I want to do this entirely from within a strategy. In short, assume I am not doing any manual trading, and this is being done on a single instrument and a single account.

      Comment


        #4
        Hello spottysallrite,

        Thank you for your reply.

        If you are keeping track of your orders using order variables to track them, you could check each to make sure that the order variable for that order is in a terminal state or has been set to null. IsTerminalState would be used to check whether the order is cancelled/filled/rejected etc. If all the order variables are either null or in a terminal state where you can set them to null, you can be certain there's no active orders.



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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Working...
        X