Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Entering Two Limit Orders

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

    Problem with Entering Two Limit Orders

    Hi,

    I have a strategy that involves entering two limit orders:

    EnterLongLimit(DefaultQuantity, firstEntryPrice, "1st");
    EnterLongLimit(DefaultQuantity, firstEntryPrice, "2nd");

    In Initalize() I include the following:
    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.UniqueEntries;//AllEntries;//.UniqueEntries;
    SetProfitTarget("1st",CalculationMode.Ticks, 4);
    SetProfitTarget("2nd",CalculationMode.Ticks, 8);

    The problem I'm having is that the strategy only executes one contract. When I put in one limit order with 2 contracts in the code it works. But two separate limit orders with two different signal names does not work.

    Any suggestions on what might be causing the problem?

    #2
    Hello ganbare112,

    Thanks for your post.

    When you run your strategy do you see any error messages listed in the "Log" tab of the control center?

    Comment


      #3
      No, I don't see any error messages.

      Comment


        #4
        Hello ganbare112,

        Thanks for your reply.

        Your code, tested here (substituted Close[0] + 4*TickSize for firstEntryPrice) shows both orders are placed/filled, see attached.

        Please send me your log and traces files so I may investigate this further (do not post them here due to information in the files). Send an e-mail to PlatformSupport[at]NinjaTrader[dot]Com. Mark the e-mail Atten:Paul and add a link to this thread in the e-mail. Please follow the steps below to manually attach your log and trace files to your e-mail:

        Open your NinjaTrader folder under Documents.
        Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
        Add the 2 compressed folders as attachments to the email.
        Once complete, you can delete these compressed folders.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 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
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X