Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
AtmStrategyChangeStopTarget
Collapse
X
-
AtmStrategyChangeStopTarget
I am trying to use this method in a strategy I've written to adjust my stop orders. However, no matter what I use as the orderName parameter, the code is changing the profit target order. How do I change the stop order with this method?Tags: None
-
This code creates the ATM strategy...
This code is what I am using to try and change the stop...Code:atmStrategyId = GetAtmStrategyUniqueId(); orderId = GetAtmStrategyUniqueId(); AtmStrategyCreate(Cbi.Action.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderId, atmtemplate, atmStrategyId);
I see a parameter in AtmStrategyChangeStopTarget that allows me to define an order name, but I don't see where to define this name in the ATM strategy above.Code:AtmStrategyChangeStopTarget(0, stop, "STOP1", atmStrategyId);
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
367 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
571 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment