![]() |
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: Jul 2010
Posts: 187
Thanks: 3
Thanked 0 times in 0 posts
|
I am working with multiple instruments and am able to pull indicator data/values for all instruments just fine but am having an issue placing trades for the secondary instruments... can you please point me in the right direction?
thx |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for your note. Just so I can send you correct information. How are you placing the trades, EnterLong() for example? I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2010
Posts: 187
Thanks: 3
Thanked 0 times in 0 posts
|
yes, simple method for now:
EnterLong(4,1,"GC"); |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
You have mentioned one way to submit orders. However I would not recommend this as you want it to be tied to the correct bars in progress. Here is the best way to do this. if ( BarsInProgress == 4) { EnterLong(1 ,"GC"); } This way you only submit on the current BIP in process and it is maintained as you expect. http://www.ninjatrader.com/support/h...nstruments.htm Check out: Entering, Exiting and Retrieving Position Information Let me know if I can be of further assistance. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestion for Download Replay Data: Allow Multiple Days / Multiple Instruments | Turtle Trader | Miscellaneous Support | 3 | 11-24-2010 09:11 AM |
| Multiple instruments | cboat | General Programming | 1 | 09-24-2010 09:06 AM |
| Trading multiple instruments with one command | Day Trading Fool | Version 7 Beta General Questions & Bug Reports | 1 | 06-29-2010 11:27 AM |
| Trading multiple instruments | mikeyork | Strategy Development | 35 | 09-22-2008 04:22 PM |
| multiple instruments? | Burga1 | General Programming | 1 | 12-26-2007 03:46 PM |