Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why is my 1 contract ES Market Order Strategy creating multiple duplicate trades ?

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

    Why is my 1 contract ES Market Order Strategy creating multiple duplicate trades ?

    I am new to working with NT strategies so I might be making a newbie error. I have a custom ES strategy running in Sim and often, what should be just a one-off 1 contract market-order trade, ends up with multiple (2 to 6 times) duplicate trades happening. At one stage I ended up with 15 Buy trades running even though I had set the parameter to 10 max in any direction.

    Am I missing something in the set up ?

    These are my settings -

    Order fill resolution is = Standard (fastest)
    Slippage = 0
    Entries per direction = 10
    Entry handling = unique entries
    Exit on session close = off
    stop and target submission = by strategy position
    Default quantity = 1
    Set order quantity = default quantity

    ​If it is not a fault in my settings, does anyone know what might be going on here ?

    #2
    Hello DragonTamer,

    Thank you for your post and welcome to the NinjaTrader forum community!

    Based on your settings, it would be possible to get multiple entries in one direction. If you want to completely avoid multiple entries and only allow one entry in the same direction, you would want to set 'Entries per direction' to 1 and 'Entry handling' to All Entries. Descriptions of each property, along with code snippets, may be found in the help guide here:The behavior with entry handling set to unique entries also depends on the signal names for your entry orders; if you have a unique name for every single entry, it would be possible to have a scenario such as the one you described with "15 Buy trades running even though I had set the parameter to 10 max in any direction."

    TraceOrders is a useful debugging tool that you could also consider enabling in order to see information in the NinjaScript Output regarding orders. For more information:Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    86 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    151 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    52 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    59 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X