Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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...
Code:atmStrategyId = GetAtmStrategyUniqueId(); orderId = GetAtmStrategyUniqueId(); AtmStrategyCreate(Cbi.Action.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderId, atmtemplate, atmStrategyId);
Code:AtmStrategyChangeStopTarget(0, stop, "STOP1", atmStrategyId);
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by sofortune, Yesterday, 11:48 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 07:11 PM | ||
Started by Zach55, 02-19-2024, 07:22 PM
|
2 responses
52 views
0 likes
|
Last Post
by lbadisa1
Today, 07:06 PM
|
||
Started by JGriff5646, Today, 05:47 PM
|
1 response
9 views
0 likes
|
Last Post Today, 06:45 PM | ||
Started by AlphaOptions, 06-18-2013, 08:24 AM
|
9 responses
2,199 views
0 likes
|
Last Post Today, 06:36 PM | ||
Started by ttrader23, Today, 09:33 AM
|
3 responses
22 views
0 likes
|
Last Post Today, 06:28 PM |
Comment