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