Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Manual Movement of Targets and Stops in an Automated Strategy
Collapse
X
-
Manual Movement of Targets and Stops in an Automated Strategy
Does anyone have code I can add (and instructions on how and where to add such code) to an automated strategy that allows me to manually move my targets and stops without the strategy returning them to their original position?Tags: None
-
Hello kal1212,
In general manually moving targets with a Strategy is not supported. Strategies won't see that change, if your logic later updates a target it will snap back to the original price.
The suggested way to do this would be to have the strategy move the order for you. If you wanted a means to manually make a change you could add custom buttons to the user interface to make specific changes to orders.
ATM's would otherwise be suggested however if you have any stop logic such as trailing the same problem exists, the ATM is in control of the order and ultimately ignores your manual changes. You can see the SampleATMStrategy for an example of using ATMs from NinjaScript.
Another way to approach this would be to not use a strategy. You can use an Indicator to observe an account and its orders. That will see manual updates to orders so the indicators logic can adjust as needed.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 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
50 views
0 likes
|
Last Post
|

Comment