Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Placing additional Orders

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

    Placing additional Orders

    Experts

    I am trying to add an additional orders on top of an additonal order if conditions are met but no matter how I try , its not working for my back testing strategy. Can you help.

    if (Position.MarketPosition != MarketPosition.Long)
    {
    if (condition3)
    {
    EnterLong(1, "Long");
    }
    }
    else // If already in a long position
    {
    if (condition77) // Place additional order if condition met
    {
    EnterLong(1, "Long");
    }

    if (condition4) // Exit long position if condition met
    {
    ExitLong("Long", "Long");
    }​

    #2
    Hello NRITV,

    In State.Configure set EntriesPerDirection to 2 (or the number of entries you would like), and enable TraceOrders.

    Use different signal names for each entry, and use the fromEntrySignals for those entries in the exit orders.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank YOU. Much appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      93 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      138 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      123 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      73 views
      0 likes
      Last Post PaulMohn  
      Working...
      X