Prior to using AtmStrategyCreate(), I want to check that the "strategyTemplateName" to be used, does exist.
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
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=3476BertrandNinjaTrader Customer Service
Comment
-
Originally 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 alifarahani, 04-19-2024, 09:40 AM
|
13 responses
84 views
0 likes
|
Last Post Today, 02:03 PM | ||
Started by PaulMohn, 05-19-2022, 11:40 AM
|
12 responses
546 views
0 likes
|
Last Post
by PaulMohn
Today, 02:02 PM
|
||
Started by ILM8008, Today, 01:31 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:50 PM | ||
Started by swjake, Today, 12:04 PM
|
4 responses
13 views
0 likes
|
Last Post
by swjake
Today, 01:49 PM
|
||
Started by Zeezee, Today, 12:45 PM
|
2 responses
10 views
0 likes
|
Last Post
by Zeezee
Today, 01:48 PM
|
Comment