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
Identifying if order is part of Atm Strategy
Collapse
X
-
Hello martyn73,
I'm not certain on this and I will research to see if there is something marked on the order that is available to NinjaScript.
A not so good work around would be looking for orders with the name Stop1, Stop2, Target1, Target2, etc.. But this wouldn't match to a specific atmstrategyid.Chelsea B.NinjaTrader Customer Service
-
Hello martyn73,
Thank you for your patience.
It looks like we found Order.GetOwnerStrategy().ID which will return an AtmStrategy Id or NinjaScript Strategy Id that the order is owned by.
And the StrategyBase.Category would let you know if this is an Atm or NinjaScript Strategy.
As a heads up, this is not officially documented or supported by the NinjaTrader Support staff.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Graci117, Today, 09:02 PM
|
1 response
4 views
0 likes
|
Last Post Today, 09:09 PM | ||
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
7 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:55 PM
|
||
Started by janio973, Today, 07:24 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:35 PM | ||
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
246 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
14 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
Comment