![]() |
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
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
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?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2008
Posts: 57
Thanks: 0
Thanked 1 time in 1 post
|
Ok, thanks Josh. I look forward to testing out the new release.
Regards, David dbw451 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |