Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Delay a new entry after the last exit.

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

    Delay a new entry after the last exit.

    I'm having an issue with a startegy i built using strategy builder. How do I make sure my strategy doesn't take another trade right after exiting one with a stop loss or profit target? Say for X number of bars. The issue I am having is my strategy takes another trade right after exiting one because the entry signal might still be true but might be too extended and thus risky. I have Set 1 for long and Set 2 for short. I do not want the strategy to take a trade, either long or short, for X number of bars. I tried BarsSinceEntryExecution(), picture attached, one for long and another for short but still takes another trade right after exiting.

    #2
    Hello AtradeAday,

    I would expect BarsSinceExitExecution to be the right direction.

    If you print BarsSinceExitExecution to the output window with the bar date time, is this value less than 10 when the entry condition evaluates as true?

    Below is a link to a forum post that demonstrates printing to understand behavior and includes a video with the strategy builder.


    Please save the output from the output window to a text file and attach this to your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X