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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 10-26-2009, 07:50 AM   #1
binwang2
Senior Member
 
Join Date: Jan 2009
Posts: 216
Thanks: 0
Thanked 1 time in 1 post
Default order quantity changed

Hi NT experts,

After 4 entry orders filled, My strategy submitted a pair of stop and target orders for each entry, matching each entry's quantity. Based on log, however, immediately after the stop and target order submission, each of them has its quantity changed to the sum of all entry orders. Any idea what is going on?

Regards,
binwang2 is offline  
Reply With Quote
Old 10-26-2009, 07:58 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

binwang2,

When you run your strategy please run with ByStrategyPosition as the Stop & Target Handling as opposed to PerEntryExecution.
NinjaTrader_Josh 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
Order quantity bug trader20 Strategy Analyzer 1 09-14-2009 03:31 PM
Auto trading, order types, order quantity, MBTrading PipSqueak Automated Trading 11 07-21-2009 08:16 AM
order.filled and order.quantity junkone Strategy Development 3 12-09-2008 05:10 AM
Receiving order changed and execution events from NT bboyle1234 Automated Trading 13 06-05-2007 11:19 AM
order ID changed? BCA Automated Trading 3 12-28-2005 08:53 AM


All times are GMT -6. The time now is 01:05 PM.