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 03-28-2011, 10:13 AM   #1
nightriderx
Senior Member
 
Join Date: Jul 2010
Posts: 187
Thanks: 3
Thanked 0 times in 0 posts
Default trading multiple instruments

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
nightriderx is offline  
Reply With Quote
Old 03-28-2011, 10:18 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-28-2011, 10:22 AM   #3
nightriderx
Senior Member
 
Join Date: Jul 2010
Posts: 187
Thanks: 3
Thanked 0 times in 0 posts
Default

yes, simple method for now:

EnterLong(4,1,"GC");
nightriderx is offline  
Reply With Quote
Old 03-28-2011, 12:12 PM   #4
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett 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
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


All times are GMT -6. The time now is 09:23 AM.