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
What's the difference between atmStrategyCreate and startAtmStrategy?
Collapse
X
-
Hello wjadevries, thanks for your post.
OnOrderUpdate and OnExecutionUpdate can not be used to track ATM strategy orders because calling ATMStrategyCreate causes the script to submit the order to the NinjaTrader core rather than being a part of the Manage order system for strategies.
StartATMStrtegy was designed to be used within an Addon where atmStrategyCreate was meant to be used from a Strategy so that you can get an ATM ID to use the other "Get" methods with.
To manage multiple ATM strategies you need to define unique order IDs to be used in the ATMStrategyCreate method. That way you can supply the same name to the "Get" methods e.g.
GetAtmStrategyEntryOrderStatus(string orderId)
All of the methods available to monitor ATMs are on the help guide page.
Please let me know if I can assist any further.
-
What's the difference between atmStrategyCreate and startAtmStrategy?
I'm starting an atm strategy from within an indicator, but I want to follow the order status to make sure it's working, filled etc.
It seems that I cannot use onOrderUpdate or onExecutionUpdate for an ATM strategy?
In the script manual I also found the ATM strategy methods, which contain another way to start an ATM strategy with the atmStrategyCreate method.
What's the difference between this method and the startAtmStrategy method?
Is there a way to get events for the different parts (orders) in an ATM strategy?
What would be the best approach when my indicator needs to create multiple ATM strategies and must monitor the order(s) and the possible position of each?
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
4 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
22 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Leave a comment: