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 kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
18 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
60 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
43 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
Comment