![]() |
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 Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Hi there,
This is probably going to be one of those issues that you guys won't be able to help me on... but I thought I'd throw it out there and know if you guys had any input. I have two versions of code that I'm running on the same symbol. The results of the backtest (identical parameters) *look* the same, but aren't. Here's what I mean: Quote:
Quote:
This is repeatable, and tied to my two versions of code. The changes between the two versions are really minor (nothing obvious, like commissions or slippage or...)... there's one of the two that I prefer, but I can't figure out where in my logic I'm leading to this difference in "profit". |
||
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
Hi heech,
Hard to judge, there could be multiple scenarios at play... 1. Make sure you test both versions under the exact same settings and conditions. 2. Use the Print() command to debug and see if your trading logic hits home, see this thread here, too - http://www.ninjatrader-support2.com/...ead.php?t=3418 3. Make sure you test with the same fill algorithm - http://www.ninjatrader-support.com/H...AStrategy.html See under 'Historical Fill processing' Have a good Thanksgiving!
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Hi Bertrand,
I think I decided what the issue is. In both cases, the difference came when a stop was hit in the same bar as the entry. I think I must've very subtly changed the timing (in the backtest) of when the stop loss is placed... perhaps not even something on the scale of many minutes? 30 seconds? Who knows. Thanks for looking at it. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Target prices Work in Back Test but fail on simulator | metal trader | Automated Trading | 5 | 10-27-2008 09:03 AM |
| Possible to Back Test Whilst Offline? | pmn100 | Strategy Analyzer | 4 | 08-21-2008 04:26 AM |
| Strange effect | Burga1 | Strategy Development | 5 | 05-16-2008 11:08 PM |
| Realistic Back-Test | MGDavid | Strategy Development | 9 | 07-24-2007 04:27 AM |
| back test | latkinso | Automated Trading | 5 | 05-18-2007 11:58 AM |