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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
50 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment