![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
Is there a way to access all atmstrategies positions created by the atmtrategycreate method without referencing to atmstarategyID?
I notice that Position.MarketPosition doesnt work for position created by the atmtrategycreate method. I also understand that for positions created by the atmstrategycreate method , one needs to use the GetAtmStrategyMarketPosition("id") method. However, I need to access ALL position opened by the atmtrategycreatemethod. Is there a system array which keeps all opened positions created by the atmstrategymethod? Thanks a lot! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
puppeye, unfortunately you would need to keep track of the needed reference ID's yourself in the code. For checking the market position of your ATM strategy, you can use GetAtmStrategyMarketPosition() - http://www.ninjatrader-support.com/H...yPosition.html
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multi position closure leads trail stop to take opp position | junkone | Strategy Development | 3 | 05-04-2009 01:40 PM |
| syncing strategy position with acct position | pistolpete | Automated Trading | 21 | 03-23-2009 07:15 AM |
| atmStrategy not cancelled | ATI user | Historical NinjaTrader 6.5 Beta Threads | 6 | 03-18-2008 12:23 AM |
| AtmStrategy w/ NinjaScript and BarsSinceEntry()... | funk101 | Strategy Development | 1 | 11-23-2007 10:31 AM |
| atmStrategy | funk101 | Strategy Development | 1 | 11-19-2007 07:04 AM |