![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
How could I check if a order is filled? for instance:
if (orderfilled) { Print("something"); } |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Hi cornelius,
you can use the IOrder method for that purpose. Please refere this link from our help guide - http://www.ninjatrader-support.com/H...V6/IOrder.html In the OnBarUpdate() you would define - Code:
entryOrder = EntryLong();
if (entryOrder != null)
Print(entryOrder.Filled);
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing partially filled stop order creates order in other direction | moscu | Automated Trading | 5 | 10-24-2008 08:36 PM |
| checking if other order is there | MoreYummy | Automated Trading | 3 | 08-09-2008 08:57 AM |
| Buy limit order is not filled | Ralph | General Programming | 21 | 08-07-2008 12:58 PM |
| Order not filled | bulegila | ATM Strategies (Discretionary Trading) | 3 | 05-23-2008 11:54 AM |
| Put in a GTC order and it gets filled as a DAY order | TraderPete | Miscellaneous Support | 2 | 12-14-2004 04:31 AM |