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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    67 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X