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 12-19-2007, 04:38 PM   #1
rramse
Junior Member
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default How not to cheat in backtest?

I used the wizard to create a simple %K crossover strategy with a 10 tick target and 1 tick trailing stop in the YM contract on a 15 minute timeframe.

In real live trading this would almost always get stopped out at a loss, but the Strategy Analyzer thinks it's a fantastic idea. Giving the backtest a virtual straight line up profit curve.

It's set to calculate on close. What other settings or precautions are needed to ensure no peeking into future data on indicator calculations and the limit and stop orders are executed in the order that they would have occurred?
rramse is offline  
Reply With Quote
Old 12-19-2007, 04:47 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Backtests in NinjaTrader do not peek into the future. The problem is the granularity of your stop and targets. I suspect a lot of your entries and exits are on the same bar? If yes, this is the problem and you will be hard pressed to get a better back test result. The reason is, in a 15 min bar that is 30 ticks high to low, you will not know if the stop or target is hit first. Thus we can't tell which order the orders would have really been filled.
NinjaTrader_Ray 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
Strategy won't backtest... maxpi Strategy Analyzer 3 11-29-2007 08:09 AM
Backtest Problems v6.5 AO76 Strategy Analyzer 1 11-11-2007 02:47 PM
Backtest not available BradB Strategy Analyzer 9 11-10-2007 09:41 PM
stoploss and MAE in backtest ceesvh Strategy Analyzer 8 07-12-2007 08:02 AM
backtest in replaymode? fliesch Strategy Analyzer 6 06-17-2007 08:43 AM


All times are GMT -6. The time now is 10:08 PM.