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 05-23-2008, 12:10 PM   #1
clearpicks
Senior Member
 
Join Date: Jan 2008
Posts: 257
Thanks: 0
Thanked 0 times in 0 posts
Default Is it possible to send out OCO orders using NT DLL?

Is it possible to send out OCO orders using NT DLL? I am able to send out stop loss and taking profit orders independently without any problem. Why are these orders not shown up in NT if I set the oco fields of these two orders to the same non-null string? I am using Interactivebrokers paper trading account as testing account. They are also not shown when using Sim101 as the default account.

- Clearpicks
clearpicks is offline  
Reply With Quote
Old 05-23-2008, 12:11 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is not supported.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-23-2008, 12:13 PM   #3
clearpicks
Senior Member
 
Join Date: Jan 2008
Posts: 257
Thanks: 0
Thanked 0 times in 0 posts
Default

Why is this not supported? Is there any technical difficulty?

- Clearpicks
clearpicks is offline  
Reply With Quote
Old 05-23-2008, 12:26 PM   #4
clearpicks
Senior Member
 
Join Date: Jan 2008
Posts: 257
Thanks: 0
Thanked 0 times in 0 posts
Default

I just found out that OCO is actually supported. The reason the orders did not show up was because I passed wrong order types to the DLL calls.

- Clearpicks
clearpicks is offline  
Reply With Quote
Old 05-23-2008, 02:00 PM   #5
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

My fault...yes of course they are suppported if you using the NTCommand() function. Sorry for the misinformation.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-23-2008, 07:38 PM   #6
clearpicks
Senior Member
 
Join Date: Jan 2008
Posts: 257
Thanks: 0
Thanked 0 times in 0 posts
Default

Ray,

In which situation it is not supported? Did you mean using the file interface?

- Clearpicks
clearpicks is offline  
Reply With Quote
Old 05-24-2008, 07:13 AM   #7
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

It is supported, that's what I was saying about misinformation.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-24-2008, 05:55 PM   #8
clearpicks
Senior Member
 
Join Date: Jan 2008
Posts: 257
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello,

When using NT DLL, is it possible to send a limit buy order with stop loss and profit target orders attached at the same time which only become active when the limit buy order is executed?

- Clearpicks
clearpicks is offline  
Reply With Quote
Old 05-24-2008, 07:28 PM   #9
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is not supported.
NinjaTrader_Ray 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
Can I send an email from NinjaScript? NinjaTrader_Ray General Programming 5 01-19-2012 09:21 PM
send many orders in one instrument dantes Strategy Development 6 04-23-2008 10:16 AM
Send OCO bracket to position without ATM strategy bboyle1234 ATM Strategies (Discretionary Trading) 1 03-12-2008 06:34 AM
Send Signal from DLL or COM and Have NT Conditionally Execute davemabe Automated Trading 5 01-10-2008 02:28 PM
How to Send an MOC order from TradeStation AJNIN Automated Trading 1 11-20-2007 02:39 AM


All times are GMT -6. The time now is 12:44 PM.