protected override void OnBarUpdate()
if (High[1] > 0)
EnterLongStop(10, "long");
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
New order every bar
Collapse
X
-
New order every bar
If I have code like this:
Assuming price is greater than zero at all times, this will mean that this entry condition is always true. Also assume that price never reaches 10, so the entry order is never filled. I've found that in this case, the entry order will get cancelled and re-submitted every time a new bar begins to draw. Is there a way to stop this from happening, and only have the entry order be cancelled if the entry conditions are no longer true?PHP Code:Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
668 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
377 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment