![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
I test my strategy with and without using a lower timeframe and I get exactly the same results. I'm using 1 minute for my lower timeframe. I'm wondering if it makes any difference with backtesting. I can't figure out why I get the same results.
When I look at the trades, for example using 30 min for main timeframe and 1 minute for entries, I see that entering on 1 minute bar gives a trade at 9:32 and when I use a regular entry on the 30 minute bar it enters at 10:00. However, the prices are almost the same. Very close. My guess is that if I program the entry to use the 30 minute bar, it's entering at the open of the next 30 minute bar which gives almost the same result as entering on the 1 minute bar. Is this the case for both backtesting and trading live? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
The difference is in the granularity. If you see value in it then by all means use the additional granularity, otherwise it is your call.
Backtesting always has CalculateOnBarClose = true. You submit signal on 9:30 bar, trade occurs at open of 10:00 bar. In real-time you have the option to run CalculateOnBarClose = false which allows you to trade intrabar.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
Quote:
|
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Huge difference. Backtesting is always CalculateOnBarClose = true no matter what you try to set it to. Real-time with CalculateOnBarClose = false will process every single tick.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
I'm sorry I miswrote what I meant.. I meant that if I use CalculateOnBarClose=true, what is the difference between backtest & realtime for entering on a 1 minute bar.
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
There are many differences. Please review this article: http://www.ninjatrader-support.com/H...sBacktest.html
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Putting larger timeframe indicator over a shorter timeframe chart | brownsfan019 | Charting | 1 | 06-25-2008 03:52 PM |
| Tip: How to make NinjaTrader’s ROC indicator to calculate the difference in points? | KamaCoder Eric | Indicator Development | 0 | 05-17-2008 09:03 AM |
| Can the "My Documents" location make a difference? | TheCD | Indicator Development | 4 | 11-20-2007 08:19 AM |
| Backtesting Multi-Timeframe does not match real market data. | MONTERO | Strategy Analyzer | 17 | 10-01-2007 06:48 PM |
| backtesting a multi-timeframe strategy | ceesvh | Strategy Analyzer | 1 | 09-18-2007 12:05 PM |