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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X