NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 12-31-2006, 04:49 AM   #1
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

I create trades from Tradestation 8.xvia the NT ATI. Can I use a custom NT exit strategy, that was setup in the NT SuperDom to manage me targets and stops? ( I have the custom NT strategy setup for 2 profit levels and changing the stop loss after the first profit targe is reached.)

If I can do this, could I get the RunCommand coding if my Exit strategy is named ER2?

Best regards,

Dan


guerind is offline  
Reply With Quote
Old 12-31-2006, 04:53 AM   #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
Post imported post

Not sure I understand 100% but if you are asking if you can reference an Exit strategy (not regular strategy) through the ATI the answer is no, it is not supported.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 12-31-2006, 07:01 AM   #3
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

What are you referring to by a regular strategy?

Dan
guerind is offline  
Reply With Quote
Old 12-31-2006, 09:55 AM   #4
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
Post imported post

Strategy that submits stops and targets.
NinjaTrader_Ray is offline  
Reply With Quote
Old 12-31-2006, 10:39 AM   #5
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

OK.......I will just write one for Tradestation........Do you have a sample profit/exit strategy for Tradestation?

Dan




guerind is offline  
Reply With Quote
Old 12-31-2006, 11:04 AM   #6
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
Post imported post

Dan,

Unfortunately we do not have any sample EL strategies.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-01-2007, 12:19 AM   #7
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

Thanks for you assistance..

Best,

Dan
guerind is offline  
Reply With Quote
Old 01-03-2007, 08:01 AM   #8
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

I have written code in Tradestation to submit orders to NinjaTrader......I am pasting in unique order ID's in each order.....I am getting the trades to NinjaTrader but the unique order ID's are not showing on the orders tab.....I checked the NinjaTrader log and the unique order ID's are included in the transmitted order.....

I am using the SIM account....

What is going wrong?

Best,

Dan




guerind is offline  
Reply With Quote
Old 01-03-2007, 08:08 AM   #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
Post imported post

Correct, they are not shown in the orders tab.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-03-2007, 08:21 AM   #10
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

I cant find them under any tab......Should they not show up under orderID in NinjaTrader?

Dan








guerind is offline  
Reply With Quote
Old 01-03-2007, 08:54 AM   #11
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
Post imported post

Hi Dan,

They will not show up anywhere except maybe the log tab showing the ATI command. This is an internal user order id and not a system/exchange order id.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-03-2007, 09:07 AM   #12
guerind
 
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Ray,

Oh Boy......then how do I get the current open trade ID assigned by the system?

Dan
guerind is offline  
Reply With Quote
Old 01-03-2007, 10:00 AM   #13
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
Post imported post

Programatically? In EL, create a variable, orderId and hold the order id value in this variable.

Ray
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


All times are GMT -6. The time now is 11:06 PM.