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 > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 10-05-2009, 06:47 AM   #1
jeremymgp
Member
 
Join Date: Aug 2007
Posts: 70
Thanks: 0
Thanked 0 times in 0 posts
Default Backtesting Renko Bars

Hello,

I believe there may be a flaw in backtesting Renko bars which typically yields unusually good results.

The problem may stem from the the close at end of bar function. When a strategy uses closes at end of bar with time based bars, it actually closes at the open of the next bar. This is more problematic in Renko charts as the open and close are not time-based and I believe are actually plotted at the same time.

Say the Renko bar height is 10 ticks.
If a strategy closes at the end of an up bar and the next bar is also an up bar, the close of the first bar will be the same as the open of the next bar. That's OK.

If a strategy closes at the end of an up bar and the next bar is a down bar, the close of the first bar will be 10 ticks above the open of the next bar.
However, the close of the first bar will also be 20 ticks above the close of the next bar.

With Renko bars - the close and open are plotted at the same time, so when the backtest is said to exit on the close of one bar but actually exits on the open of the next bar, as the open and close occur simultaneously it should actually exit on the close close of that next bar also. This only applies when the two bars are the opposite direction to each other.

Renko backtest results then typically have 50% of trades with the exit 1 Renko bar's height in favor of the trader.

Thanks,
Jeremy
Last edited by jeremymgp; 10-05-2009 at 07:04 AM.
jeremymgp is offline  
Reply With Quote
Old 10-05-2009, 07:05 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

jeremymgp, thanks for the post - in NinjaTrader 6.5 those are not supported by us (as it's a custom add on bars type) - for NinjaTrader 7 Renko Bars will be added per default and the backtesting on them would be comparable to other regular bars types.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-05-2009, 08:32 AM   #3
RJay
Senior Member
 
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 618
Thanks: 12
Thanked 24 times in 18 posts
Default

Quote:
Originally Posted by jeremymgp View Post
Hello,

I believe there may be a flaw in backtesting Renko bars which typically yields unusually good results.

The problem may stem from the the close at end of bar function. When a strategy uses closes at end of bar with time based bars, it actually closes at the open of the next bar. This is more problematic in Renko charts as the open and close are not time-based and I believe are actually plotted at the same time.

Say the Renko bar height is 10 ticks.
If a strategy closes at the end of an up bar and the next bar is also an up bar, the close of the first bar will be the same as the open of the next bar. That's OK.

If a strategy closes at the end of an up bar and the next bar is a down bar, the close of the first bar will be 10 ticks above the open of the next bar.
However, the close of the first bar will also be 20 ticks above the close of the next bar.

With Renko bars - the close and open are plotted at the same time, so when the backtest is said to exit on the close of one bar but actually exits on the open of the next bar, as the open and close occur simultaneously it should actually exit on the close close of that next bar also. This only applies when the two bars are the opposite direction to each other.

Renko backtest results then typically have 50% of trades with the exit 1 Renko bar's height in favor of the trader.

Thanks,
Jeremy
Jeremy,

Do not backtest strategies with Renko Bars.

It is not a valid test. Renko bars only show open and close for each bar.

They do not show the high and low for each bar.

On larger bar sizes, Renko bars will break the bank if you get my drift!!!!

Just my opinion,

RJay
RJay is offline  
Reply With Quote
Old 10-05-2009, 09:16 AM   #4
jeremymgp
Member
 
Join Date: Aug 2007
Posts: 70
Thanks: 0
Thanked 0 times in 0 posts
Default

NT7 sounds tasty, thanks and good luck!,

Jeremy
jeremymgp 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
Renko Bars roonius General Programming 112 01-23-2012 03:52 AM
Renko Help kermut Strategy Analyzer 5 08-15-2009 04:17 PM
Backtesting Range Bars RandyT Strategy Analyzer 5 10-24-2008 08:29 AM
backtesting strategy with multiple bars does not run j0dan Strategy Development 3 04-24-2008 08:56 AM
Min Bars required under strategy backtesting Sidhartha Strategy Development 4 04-08-2008 07:17 AM


All times are GMT -6. The time now is 11:31 AM.