NinjaTrader Support Forum  

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 10-19-2010, 04:13 PM   #1
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default "Cancel strategy orders on strategy termination"

Hi,

I'm working through some issues in my new code... I'm not sure exactly what I'm looking for yet.

But first, I've noticed that "cancel strategy orders on strategy termination" doesn't seem to work with orders submitted on secondary bars. Just add a second Bar, place a order on both, and then terminate the strategy. Order on the primary/original bar is canceled, but not the other orders.

Is this known behavior? Any suggestion for getting around it?
heech is offline  
Reply With Quote
Old 10-19-2010, 04:35 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Heech,

It's working OK here on latest NinjaTrader 7 beta 22. What version are you testing this on?
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-19-2010, 04:43 PM   #3
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default

Sorry, should've mentioned. I'm still on 6.5.1000.17.
heech is offline  
Reply With Quote
Old 10-19-2010, 05:18 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Heech,

I can see the same thing in version 6.5

Using the same script everything works as expected - both orders are cancelled.

Unfortunately this isn't something that's likely to be resolved in 6.5, but should work for you in version 7.
NinjaTrader_RyanM 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
Flatten everything orders not counting towards "real time" Strategy performance masafi Version 7 Beta General Questions & Bug Reports 4 02-02-2010 01:26 PM
summary of "strategy realized" is not equal "account performance, total net profit"" Fragolino Miscellaneous Support 1 02-19-2009 04:12 AM
Add to ATM Strategy "Trailing "Limit"" shawnj Suggestions And Feedback 2 10-10-2008 08:01 PM
"'OrderRejected'. Strategy has sent cancel requests" & "There is no market data..." Elliott Wave Strategy Development 6 04-12-2008 12:03 AM
Strategy ATM "No Outstanding Orders" Check whitmark Strategy Development 5 07-23-2007 01:59 PM


All times are GMT -6. The time now is 02:29 PM.