![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2009
Posts: 99
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
i have question.. when i am already in long position it is possible to enter to next long position? So to be in position with 2 contracts but to enter into these two position in different time. For example: i have signal for entering to long, so i will enter to long. I used EnterLongLimit(1, price); Few minutes later i will recive next signal to enter to long position, so i will use EnterLongLimit(1, price); And 10 minutes later i will recive to enter to short position, so i will use { ExitLong(); EnterShortLimit(1, priceTwo); } Am i really in two long positions. Had i really two contracts for long? Or the secong enter long was just ignored? Thank you |
|
|
|
|
|
#2 | |
|
Certified NinjaScript Consultant
|
Quote:
If it is set to 1 then second entry will be ignored |
|
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2009
Posts: 99
Thanks: 0
Thanked 0 times in 0 posts
|
and where could i modify the entries per direction setting?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
|
It can be either set in the strategy Initialize() - http://www.ninjatrader-support.com/H...Direction.html
or when you start up your strategy (look under OrderHandling) - http://www.ninjatrader-support.com/H...romAChart.html
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EnterLongLimit() | ltemme | Automated Trading | 17 | 04-15-2010 04:56 PM |
| Backtesting with EnterLongLimit() | stefy | Strategy Development | 1 | 08-06-2008 09:50 AM |
| help on EnterLongLimit | toyogo00 | Strategy Development | 1 | 07-21-2008 09:46 AM |
| EnterLongLimit order | mike8943 | Strategy Development | 3 | 07-04-2008 01:47 PM |
| EnterLongLimit and stoploss | ct | Strategy Development | 1 | 12-31-2007 09:18 PM |