![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2008
Posts: 325
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |