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-09-2008, 10:58 PM   #1
MoreYummy
Senior Member
 
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
Default exit long and entry short at same time in strategy

After some testing of the strategy, when there is a LONG position, but didnt met Profit nor Stop Lose, then a SHORT condition is true, the strategy will exit the LONG and Enter Short at the same time by 1 LOT(for sample).

Is it what will happen exactly in real situation?
The strategy will submit 2 orders at 1 LOT each, so first order is close LONG position, then second order will open SHORT position at same time or it will wait for the long to confirmed it is indeed exited before enter the short OR the strategy system will simply enter a SHORT position 2x size of the order.
MoreYummy is offline  
Reply With Quote
Old 08-10-2008, 04:07 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

An existing position will be closed as you cross over to the opposite side of the market. Did you by chance rip through our strategy tutorial to understand the concept of NinjaScript strategies/position management? Help guide->NinjaScript->Develop custom strategies.
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
Always start with a long or short Nu2NT Automated Trading 4 05-12-2008 12:05 PM
Check if last position was long or short!? whitegun Automated Trading 1 02-07-2008 03:30 PM
Long & short combined in 1 strategy dtf139 Automated Trading 5 01-08-2008 08:23 PM
Handling of Exit Long and Exit Short before EOD Trader Rob Strategy Development 3 10-22-2007 02:13 PM
How to determine the number of trades taken today. (long or short) ThePatientOne Automated Trading 1 04-30-2007 03:41 AM


All times are GMT -6. The time now is 02:28 PM.