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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
Comment