Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Detecting when profit target reached
Collapse
X
-
Detecting when profit target reached
I have a strategy that executes 3 long market trades, each one with a different profit target. I would like to change the stop price for target 2 & 3 when target 1 is reached. Is there a way I can detect when a target is reached via OnExecutionUpdate vs.having to detect it programatically? thank youTags: None
-
Hello pman777,
I would recommend using 3 exit orders (like ExitLongStop()) with 3 unique signal names. I further recommend that you use 3 separate entries as well and use 3 different signal names with those used as from entry signals to the exit orders.
Then match the Name of the order in OnExecution/OnOrderUpdate.
If you insist on using Set methods, you can detect the name to be 'Stop loss' and then view the objects .FromEntrySignal property to see what it is attached to if its attached to a specific entry.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment