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 NullPointStrategies, Today, 05:17 AM
|
0 responses
38 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment