Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop Loss under OnExecution() vs. OnBarUpdate()
Collapse
X
-
Stop Loss under OnExecution() vs. OnBarUpdate()
Do I have this correct for stops....When using ExitLongStop under OnExecution() this is setting the stop as soon as the trade is executed. Using SetStopLoss under OnBarUpdate() and say I'm using 5min bars, the stop will not be set until a 5min bar completes(if CalcOnBarClose=True). So using SetStop your stop placement is subject to a potential 5min delay and could even be missed. Therefore setting the stop under OnExecution() would be the better route?Tags: None
-
Hello,
Both using ExitLongStop in OnExecution() and SetStopLoss in OnBarUpdate will have the stops applied intrabar.
The set methods are special calls that allow entry orders to be bracketed right off the bat.
When dealing with more complex order management the OnExecution() route is going to offer more flexibility.
Let me know if I can further assist.LanceNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 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
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
572 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment