Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATM Strategy name
Collapse
X
-
ATM Strategy name
Hi there. I am having problems just copying and changing the name of the standard ATM strategy to a new name. The problem is the description and name will only accept "sampleatmstrategy' for it to compile. Not sure why. Any ideas? ThanksTags: None
-
Hello djkiwi,
The name and description you are using is not correct because you are using a Resource that does not exist. You need to use a string for the name and description.
If you are making a copy in any other way than doing a Save As you are going to have to make changes like this. I would suggest to remove this file and then open the SampleATMStrategy -> Right click -> Save as, That will change the name and removed these resources.Code:Name = ""; Description = "";
The resources would be in the stock files and are for regionalization.
I look forward to being of further assistance.
- Likes 1
-
Hi Jesse,
I would like this to cancel the outstanding orders if they are not filled on the same bar. It just leaves the order sitting there and does not cancel it. Any idea how to modify this sample ATM strategy to achieve this? ThanksAttached FilesLast edited by djkiwi; 12-22-2020, 09:29 PM.
Comment
-
Hello djkiwi,
The ATM based strategies use different methods from the strategy based order entry, to close an ATM you can use AtmStrategyClose. There is a small sample involving PnL in the help guide, you would otherwise need to make some kind of condition which calls AtmStrategyClose. If you want to do that after 1 bar you would very likely want to use the CurrentBar index and store the value of CurrentBar when submitting the entry, you could then check if that stored value is 1 bar less than the CurrentBar to close the order.
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 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