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 > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 08-29-2007, 02:29 AM   #1
HelloHello
Member
 
Join Date: Aug 2007
Posts: 83
Thanks: 0
Thanked 0 times in 0 posts
Default Function int NTFilled(string orderId)

okay say we bought 1000 shares of MSFT.

we used
NTBuyMarket("X", 1000);

then we sell 200 shares of MSFT using
NTSellMarket("Y", 200);

so we are long 800 shares of MSFT

int NTFilled(string orderId)
Gets the number of contracts/shares filled for the orderId/account combination.

Now does NTFilled("X") return ----> 1000? because that is what we were filled or does it return 800. I'm pretty sure it's 1000, but just gotta make sure.

Thanks
HelloHello is offline  
Reply With Quote
Old 08-29-2007, 02:40 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Now does NTFilled("X") return ----> 1000?
correct
NinjaTrader_Dierk 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
How to increment string? Richard Von Indicator Development 1 07-30-2007 07:16 AM
Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend MindSabre General Programming 2 07-11-2007 07:13 AM
function in com or dll smiths Connecting 6 01-31-2007 09:21 AM
OrderID not used? furedde Automated Trading 5 01-31-2007 05:53 AM
OrderID and custom strings furedde Miscellaneous Support 3 11-06-2006 08:27 AM


All times are GMT -6. The time now is 09:41 PM.