NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-18-2009, 09:09 PM   #1
puppeye
Junior Member
 
Join Date: Dec 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default ATMStrategy Position

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!
puppeye is offline  
Reply With Quote
Old 06-19-2009, 05:08 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 10:52 PM.