TIA
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Changing the Custom ATM
Collapse
X
-
Changing the Custom ATM
Is there a way to programmatically change the Custom ATM parameters from a button or indicator? I'd like my indicator to change the stop to 2xATR for trades I'm handling manually, but don't see how this can be done without developing a strategy that automates the trades (which I don't want to do).
TIATags: None
-
Hello IanS00,
Thanks for your notes.
There would not be supported or documented NinjaScript methods or properties for modifying an ATM Strategy template from an indicator or button.
As you noted, this would require developing a custom NinjaScript strategy that submits and handles trades.
Atm Strategy Methods would be used in a NinjaScript strategy to submit stop/targets using an ATM Strategy template. The AtmStrategyChangeStopTarget() method would be used to modify the stop or target order to a different price.
You could view the SampleAtmStrategy reference sample that comes with NinjaTrader which demonstrates this. To view the code, open a New > NinjaScript Editor window, open the Strategies folder, and double-click on the SampleAtmStrategy file.
See the help guide documentation for more information about Atm Strategy Methods and using Atm Strategies in NinjaScript.
Atm Strategy Methods: https://ninjatrader.com/support/help...gy_methods.htm
Using Atm Strategies in NinjaScript: https://ninjatrader.com/support/help...strategies.htm
This thread will be open for other community members to share their insights on possible unsupported/undocumented code you could try.Last edited by NinjaTrader_BrandonH; 03-26-2024, 09:41 AM.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment