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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X