NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 07-07-2012, 07:52 AM   #1
appleseed
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default Obtaining executed position when restart scripts

How do I obtain the executed positions when restarting scripts?

For instance, yesterday my scripts successfully bought 10 different stocks per designed strategies, but haven't sold them. So today when the scripts restarts, it needs to know these 10 existing stocks in my account. I am not talking about pending order positions. I need to know how to find these purchased stocks. Thanks.
appleseed is offline  
Reply With Quote
Old 07-07-2012, 01:13 PM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

appleseed,

You could use something like these reference samples to store the information.

http://www.ninjatrader.com/support/f...ead.php?t=3477

http://www.ninjatrader.com/support/f...ead.php?t=3476

http://www.ninjatrader.com/support/f...ead.php?t=3475
NinjaTrader_AdamP 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
Can ninjatrader give alerts when a position is to be executed? comfy Automated Trading 20 07-22-2012 10:23 PM
existing position in sim101 disappears after computer restart qewcool Automated Trading 9 07-09-2010 06:16 AM
"Close position" orders executed via Pats heech Miscellaneous Support 3 06-30-2009 02:07 PM
Obtaining Last Volume and Price from IB? palinuro General Programming 2 04-08-2008 09:33 AM
Obtaining Data HelloHello Miscellaneous Support 3 08-22-2007 06:06 PM


All times are GMT -6. The time now is 08:57 AM.