Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Way to delay entry?
Collapse
X
-
Way to delay entry?
Hello, maybe this is simple and I’m overthinking it but is there a way to delay the entry of a position when I hit buy or sell? For example- on a 10 minute bar, the bar has 4 minutes left until the bar closes and the new one opens. I decide to go long 4 minutes before the bar closes but do not want to enter the trade until the instant of the next bar open price, not at the current price. Thank youTags: None
-
Hi Brandon, thanks for posting.
Your strategy will need to use boolean flags to mark an entry variable, then if that variable is true on the first tick of the next bar, call the entry method. You can check if the tick is the first tick of the bar with IsFirstTickOfBar, and I have also linked a publicly available page on C# booleans:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
The idea is to detect your entry condition, set the boolean to true, and if the boolean is true on the next bar, enter the trade at that time.
Best regards,
-ChrisL
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
89 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment