Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Delay a new entry after the last exit.
Collapse
X
-
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.1 PhotoTags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
6 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
9 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
Comment