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 > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 03-01-2009, 10:23 AM   #1
dbw451
Member
 
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
Default Cancelled pending exit order

I'm programming a stop and reverse strategy. A reverse order is placed after the initial position is closed via a filled stop and the associated target order is canceled. A reverse order is placed (via a market order) and is accepted. Once the reverse position state is 'Filled', I place a stop and target order using the entry name of the reverse order. Both the stop and target orders are accepted and in the 'Working' state.

For some trades using the back-tester, my stop and target orders are then canceled. The trace messages I get are:

"Cancelled pending exit order, since associated position is closed"

There's a couple of issues with this:

1. The stop and target orders are 'Working' not 'Pending'.
2. The stop and target orders are associated with the reverse position which is not closed, it's still open (now without a stop or target order).

A position that is closed is the initial position that got stopped out before the reverse position was put on. The stop and target orders that are canceled are not associated with that initial position (which has a different entry name).

I've searched through the forum, looking for related problems and see in this thread:

http://www.ninjatrader-support2.com/...ad.php?t=12619

that Ninja has some internal signal tracking issues. My problem seems related to the issue detailed in that thread.

I'll wait for the next maintenance release before spending hours trying to create a minimum strategy that can reproduce the problem.

Regards,

David
dbw451
dbw451 is offline  
Reply With Quote
Old 03-02-2009, 07:12 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Hi David, thanks for your post and sorry for the inconvenience caused - were you running your strategy with the order handling set to 'PerEntryExecution' under the 'Strategies' tab?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-02-2009, 07:44 AM   #3
dbw451
Member
 
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
Default

Yes, I have the "Stop & target submission" set to "Per entry execution", however I'm not sure that would make any difference since I'm currently trying to keep order handling simple and do all my back-testing with one futures contract.

Regards,

David
dbw451
dbw451 is offline  
Reply With Quote
Old 03-02-2009, 07:54 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

David,

What you are experiencing may or may not fall into that category. Please let us know after you try it out on that release which will be out shortly. Thanks.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-02-2009, 08:00 AM   #5
dbw451
Member
 
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
Default

Ok, thanks Josh. I look forward to testing out the new release.

Regards,

David
dbw451
dbw451 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
Cancelled expired order Roman Strategy Development 8 01-21-2009 09:18 AM
Order cancelled when using liveUntilCancelled ntVic Automated Trading 21 12-23-2008 02:34 PM
Cancelled custom managed order SteveB Strategy Development 2 03-27-2008 05:42 AM
Cancelled order MrBaffalo Strategy Development 2 04-26-2007 05:44 AM
Where's the horizontal pending, entry and exit lines? Antraman Charting 4 01-12-2007 02:26 AM


All times are GMT -6. The time now is 01:22 AM.