Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Condition to enter as soon as bar close?
Collapse
X
-
Condition to enter as soon as bar close?
Is there a condition or way to make order as soon as previous bar closes regardless of any indicators or info on the bar?Tags: None
-
If you are using Calculate.OnEachTic, and at the open of a bar, you could use IsFirstTickOfBar
The above will process on the OPEN of the bar, and will be the first thing that happens. I'm not sure if this is sufficient.Code:protected override void OnBarUpdate() { if(IsFirstTickOfBar) { //Do Stuff } }
- Likes 1
-
Is there a way to translate that into the Strategy builder section because I can't do code. What I do bars ago 0 and look for price open?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment