![]() |
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
|
|||||||
| 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 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
What are you referring to by a regular strategy? Dan |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Strategy that submits stops and targets.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
OK.......I will just write one for Tradestation........Do you have a sample profit/exit strategy for Tradestation? Dan |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Dan,
Unfortunately we do not have any sample EL strategies. Ray
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
Thanks for you assistance.. Best, Dan |
|
|
|
|
|
#8 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#9 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Correct, they are not shown in the orders tab.
Ray
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
I cant find them under any tab......Should they not show up under orderID in NinjaTrader? Dan |
|
|
|
|
|
#11 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Join Date: Dec 2006
Location: , ,
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Ray,
Oh Boy......then how do I get the current open trade ID assigned by the system? Dan |
|
|
|
|
|
#13 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Programatically? In EL, create a variable, orderId and hold the order id value in this variable.
Ray
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|