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 jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,290 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        9 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        62 views
        0 likes
        Last Post halgo_boulder  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        8 views
        0 likes
        Last Post Option Whisperer  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        25 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X