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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
66 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment