![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2011
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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
Adam P.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |