Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Entry Problem

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

    Multi Entry Problem

    Hello NT Support,
    I want my strategy to make two entries ( whether long or short) when conditions are right. One entry (Entry 1) then exits after X number of bars and the other (Entry 2)continues until another exit condition (a cross above/below condition). At which point strategy should reverse and do the same in opposite direction. But the entry that exits after X bars (Entry 1) is exiting as it should but then re-entering on the original condition (see screen shot of chart). I do not want it to re-enter until the reverse condition and Entries 1 and 2 trigger at once.
    Also I have to manually set the Entries Per Direction to 2 in Backtest to get both entries to trigger. Can this be handled in Strategy Wizard or Ninjascript.
    Attached Files

    #2
    Hello,

    You can set the Entries Per Direction from the Initialize method:



    You can try adding position size check to your original entry condition to prevent from taking orders should you already be in position.



    You can do this either from the Strategy Wizard or from the NinjaScript code directly
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    637 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    571 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X