Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding a manual profit target in addition to strategy
Collapse
X
-
Hello Ousher,
Thank you for your post.
One way to be able to move around a strategy-generated order is to add buttons to your chart trader that would have the action of moving the price of the Profit Target order up or down. The button would use TriggerCustomEvent and then in your event handler you could add logic that modifies the price of the Profit Target. In order to use ChangeOrder(), your order must be either submitted via the Managed Approach with IsLiveUntilCancelled set to true or submitted via the Unmanaged Approach:
My colleague has posted an example that uses chart order buttons with a few different use cases as an example here:
I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of using
Please let us know if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
39 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
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 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