![]() |
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
|
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;
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |