NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-14-2008, 12:59 PM   #1
cornelius
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default checking if order is filled

How could I check if a order is filled? for instance:

if (orderfilled)
{
Print("something");
}
cornelius is offline  
Reply With Quote
Old 11-14-2008, 02:01 PM   #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

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);
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
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


All times are GMT -6. The time now is 12:51 PM.