Prior to using AtmStrategyCreate(), I want to check that the "strategyTemplateName" to be used, does exist.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Check that ATM Template Name Exists
Collapse
X
-
Check that ATM Template Name Exists
I realise this is probably outside of the official NinjaTrader supported functionality, but does anyone have a suggestion for how to check that a particular ATM Template actually exist?
Prior to using AtmStrategyCreate(), I want to check that the "strategyTemplateName" to be used, does exist.Tags: None
-
Hi Bertrand, I wasn't expecting an answer from NinjaTrader support as I thought it would be in the 'not supported' category, but thanks anyway.
I was hoping that someone in the community may chip in with some advice.
Checking manually is what I do now, but my strategy has many ATM options that could be used, and on a couple of occassions have ended up calling a template that doesn't exist.
I could create an order well away from the market price as a test to see if the template is there, then cancel the order if all is OK, but I don't really like that approach.
Comment
-
You are welcome, I see - well you may be able to put all your templates in a text file and then access it with Streamreader - http://www.ninjatrader-support2.com/...ead.php?t=3476
Comment
-
Hi BertrandOriginally posted by NinjaTrader_Bertrand View PostHi MJT, unfortunately this is not supported, you have to make sure to supply a valid template name in the AtmStrategyCreate().
I see your answer to the question I want to ask was done in 2009
Has this changed ???????????
Richard
Comment
-
Hello Richard,
This has not changed in NinjaTrader 7 and most likely will not change, but I believe it is on our feedback list for consideration in the next major release of NinjaTrader which I will send your vote for this feature to our development team.
Note that it maybe possible to get this information using unsupported code by reading your database file (Documents -> NinjaTrader 7 -> db -> NinjaTrader.sdf) since the "ATM Strategy Template" names are stored in it, but I have not seen this done.JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
63 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
54 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
61 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment