Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using ATMStrategyCreate
Collapse
X
-
Hello ttrader23,
Which specific instructions are you referring to?
Are you using a hard coded string for the Atm template name?
Does the hard coded template string match the name of a saved Atm template exactly?
Are you getting the AtmStrategy selector from Chart Trader and using the selected value?
Included with NinjaTrader is the SampleAtmStrategy which demonstrates using AtmStrategyCreate().Chelsea B.NinjaTrader Customer Service
-
Hello ttrader23,
Are there errors on the Log tab of the Control Center?
Try using the same template string with copy of the SampleAtmStrategy included with NinjaTrader.
Does this enable the atm when the entry fills?
Are you generating unique strings for the entry order id and atm instance id using GetAtmStrategyUniqueId()?Chelsea B.NinjaTrader Customer Service
Comment
-
Hi NinjaTrader Team
I'm trying to use AtmStrategyCreate() and the "associated" methods like GetAtmStrategyUniqueIid(), GetAtmStrategyEntryOrderStatus(), etc. in a indicator instead of a strategy.
In the documentation, it doesn't mention the fact that it cannot be done but I get an following compile error message: "the name AtmStrategyCreate() does not exist in the current context" (along with identical messages for the other methods).
- Is there a workaround?
- Can I use these methods in an indicator?
Thanks for your help.
Comment
-
Hello z.franck,
The AtmStrategy methods specifically are native to NinjaScript strategies only, however the Addon approach does have a way to start an Atm strategy.
AtmStrategy.StartAtmStrategy(AtmStrategy atmStrategyTemplate, Order entryOrder)
Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.
I have a simple example of an addon starting an atm strategy.
The 'AddOn Framework NinjaScript Basic' addon sample has much more sample code of starting and managing Atms.
Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.
The ProfitCaseStopTrailIndicatorExample provides a basis of accessing an account using the addon approach in an indicator.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
25 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
121 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment