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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
60 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment