Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

consecutive order execution

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

    consecutive order execution

    Hi

    I'm having some trouble with consecutive order execution.

    Consider the following:
    I run a stop-limit order in the OnBarUpdate method:
    EnterLongStop(999, "test1");

    The price didn't reach 999, and at the next bar (the following call to OnBarUpdate),
    i execute a simple market-buy order:
    EnterLong("test2");

    The second order doesn't get filled and I don't really understand why.

    #2
    Hello Micronezia,

    This is most likely due to your EntriesPerDirection Handling in NinjaTrader.

    If you set your EntriesPerDirection in the Strategy Properties to 2 does your second order get executed?

    Note that for issues with Orders you may want to enable TraceOrders to true so that you can see more information inside of the Tools -> Output window.


    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks

      Now that you've pointed me to the right direction, I've actually found a more elegant solution
      by switch Entry Handling to UniqueEntries. This allows me to issue the orders properly.

      I would expect this to be the default property, dont you think ?

      Comment


        #4
        Hello Micronezia,

        By Default it is set to "AllEntries" but you can change the default to "UniqueEntries" easily inside of Initialize() like in the following example:

        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X