I have two StopMarket orders with names 1.2 and 2.2. When price reaches A, I want to change StopPrice of order 1.2 to B. When price reaches C, I want to change StopPrice of order 2.2 to D. How can I change these prices from OnBarUpdate?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
update order price for unmanaged orders
Collapse
X
-
update order price for unmanaged orders
I am using unmanaged orders approach.
I have two StopMarket orders with names 1.2 and 2.2. When price reaches A, I want to change StopPrice of order 1.2 to B. When price reaches C, I want to change StopPrice of order 2.2 to D. How can I change these prices from OnBarUpdate?Tags: None
-
Hello Eklavya,
Thanks for your post.
You can use ChangeOrder to change the properties of an order.
ChangeOrder - https://ninjatrader.com/support/help...hangeorder.htm
For more information on using Order objects, please see the SampleOnOrderUpdate strategy. This example outlines how to assign Order objects in OnOrderUpdate and can also be used for demonstration on how to submit target and stop loss orders from OnExecutionUpdate.
SampleOnOrderUpdate - https://ninjatrader.com/support/help...and_onexec.htm
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment