NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-13-2012, 09:23 AM   #1
Majorshi
Junior Member
 
Join Date: Jul 2011
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default submit an order with open opposite positions

I think it will close the opposite positions first and then open a position when submitting an order with an open opposite position. want a confirmation for this.
Majorshi is offline  
Reply With Quote
Old 07-13-2012, 09:31 AM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

Hello,

Can you please clarify what type of orders you're using? Are they market or stop/limit orders?

Are you using the managed or unmanaged approach?
NinjaTrader_Matthew is offline  
Reply With Quote
Old 07-13-2012, 10:10 PM   #3
Majorshi
Junior Member
 
Join Date: Jul 2011
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default I am using managed approach.

I don't think an unmanaged approach will make this effect.
The second question: I don't think it will make any difference between market order or limit order in this case.
Majorshi is offline  
Reply With Quote
Old 07-16-2012, 07:36 AM   #4
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

Hello,

Correct, there are additional rules with using the managed approach which prevents you from opening additional positions depending on the type of order you are using.

However in the unamanged approach, there are no order handing rules.

If you are in a 1 long position and submit a sell order for 2 contracts, you will see the 1 long position closed and a short position opened from the 2 qty execution.
NinjaTrader_Matthew 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
reverse to more opposite positions solvmatic ATM Strategies (Discretionary Trading) 1 05-30-2012 02:28 PM
Issue with opening orders in opposite direction to open trades PolarBear Strategy Development 1 05-08-2012 07:07 AM
Submit orders to set positions pstrusi Automated Trading 3 11-20-2011 06:08 PM
Managed Order handling - enter to opposite size boaza Strategy Development 3 08-23-2011 11:32 AM
Option to submit ATM stop loss order at the same time as entry order Softturbo Version 7 Beta General Questions & Bug Reports 1 06-15-2010 04:02 AM


All times are GMT -6. The time now is 05:13 AM.