NinjaTrader Support Forum  

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 12-28-2009, 09:50 AM   #1
gv1150
Junior Member
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default What would cause an ExitLong() to happen but not get executed?

In my backtesting, I am doing a ExitLong() or ExitShort() at 141400 or later...I have a Log() in there and it's getting to that code, but it sometimes doesn't get out?!?

How is this possible?

I'm backtesting with Range=2

I've moved that time back to as early as 140000 and it still sometimes doesn't execute?

Any ideas?
gv1150 is offline  
Reply With Quote
Old 12-28-2009, 09:57 AM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

gv1150, please try using the order tracing tool to see what could be happening. In the Initialize() section of code add this line:
Code:
TraceOrders = true;
This links to a post by Josh that tells how to use the tool.
NinjaTrader_Austin is offline  
Reply With Quote
Old 12-29-2009, 12:45 AM   #3
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

Also, check the LOG tab to see if its being ignored due to some internal order handling rule.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik 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
What happen to the BuySell Indicator Dev Thread??? remorris Indicator Development 3 11-30-2009 06:20 AM
click on .exe but nothing happen apelikeman Installation and Licensing 1 06-10-2009 03:03 PM
Using ExitLong() trader_rick Automated Trading 3 03-10-2009 12:47 PM
ExitShort() / ExitLong() andrewbee General Programming 1 02-06-2008 10:57 AM
Why does this happen? Burga1 Strategy Development 1 12-27-2007 09:50 AM


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