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

Auto Cancel not working after Entry order

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

    Auto Cancel not working after Entry order

    I have a strategy that uses 2 data series. The triggering indicator is based on the primary series which triggers the entry and exit orders on the secondary series (one sec bars) of a separate instrument. I just started using the strategy live. I am connected to TWS as my execution account through api. I have noticed that when the market entry order doesn't get filled, the order does not get auto cancelled as I believe it should on next bar update for "Enter" orders. in fact it never auto cancels. The auto cancel does seem to work using paper account. Any ideas to fix/enable the auto cancel? Thanks.

    #2
    Hello pilotfo,

    A market order should not expire or cancel, that will need to fill after submission. The other type orders which have fixed prices like limit or stop limit/market will expire after 1 bar elapses if you are not using isLiveUntilCancelled with those orders.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      So this comment from the help guide "When using NinjaTrader's Enter() and Exit() methods, the default behavior is to automatically expire them at the end of a bar unless they are resubmitted to keep them alive.," doesn't apply to market orders?

      Comment


        #4
        Hello pilotfo,

        No that would apply to any resting order which would remain active until filled. Market type orders are filled at the next available price. You can read about the different order types and how they are used for trading on trading education websites like the public site investopedia.com. https://www.investopedia.com/terms/m/mar****rder.asp

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        8 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,613 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Yesterday, 05:56 PM
        0 responses
        10 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        20 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Working...
        X