![]() |
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
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2011
Posts: 42
Thanks: 24
Thanked 0 times in 0 posts
|
Code:
... #region Variables // Wizard generated variables ... private IOrder entryOrder1 = null; private IOrder entryOrder2 = null; private IOrder entryOrder3 = null; ... protected override void OnBarUpdate() { entryOrder1=EnterLong(1); entryOrder2=EnterLong(1); entryOrder3=EnterLong(1); ... Print (Position.Quantity); } And at the end we have one opened position and Position.Quantity returns 1... Have I missed something? |
|
|
|
|
|
#2 | |
|
Senior Member
|
Quote:
ref; http://www.ninjatrader.com/support/h...rdirection.htm |
|
|
|
|
|
The following 2 users say thank you to koganam for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why cannot reverse Entry orders execute on the same bar as exit orders? | koganam | Miscellaneous Support | 10 | 04-11-2011 02:48 PM |
| Unmanaged Sell Limit orders not appearing in Orders window | AlgoNaute | Automated Trading | 9 | 04-05-2011 06:53 AM |
| Holding orders in strategy somehow when waiting for fills & cancels (managed orders) | adamus | General Programming | 5 | 10-12-2010 05:02 AM |
| Control Panel Orders shows no Order when an Orders must have occurred? | mtthwbrnd | Strategy Analyzer | 4 | 02-10-2010 09:10 AM |
| Limit orders - book position kept when new orders are generated | Fabrice | Automated Trading | 6 | 10-13-2007 03:16 PM |