RENKO BARS PROBLEMS

To add comments, please log in or register
insomniawawa
29
insomniawawa  

Hi,

I'm using renko bars in my strategies, but I have 2 problems with testing EAs by strategy tester.


1. Even if I download good data where's no discrepancy between any timeframes and I have 90% modelling quality when I convert it to renko there're a lot of mismatched charts errors. Can I do something with that?

2. Strategy tester produce incorrect results when for example first bar is bearish and second is bullish. Conditions are met in latest bar, so EA opens short position, but it takes opening price from next bar, so in this case it takes better, higher price. Does anybody know script that covert standard charts to charts similar to renko, but when there's trend reverse it starts new bar from price that last bar was closed?


Best regards!

William Roeder
20210
William Roeder  
  1. If there is no discrepancy there can be no mismatch chart errors. You run the offline generator on the M1 chart, not in the strategy tester - there can be no mismatched errors.
  2. That is not what Renko bars are. You're describing Constant Range bars.
insomniawawa
29
insomniawawa  

Hi,


I'm definitely talking about renko, not constatnt range bars. I enclose two screenshots from MT4, test are made on the same period, 15min chart- no errors, offline renko chart with wicks- 21648 errors. I'm not sure what do you mean by offline generator?

insomniawawa
29
insomniawawa  
William Roeder
20210
William Roeder  
  1. Why is your renko on M5 not M2
  2. Where is you get that convertor, Renko bars do not have tails.
insomniawawa
29
insomniawawa  

1. I opened it on M5, because there's no option to use strategy tester on M2.

2. I got it from http://novacodetrader.com/s/ for free. It's true, renko doesn't have wicks. It's additional mode in this script that allow to show it.

3. Any idea how to avoid these errors?

George
49
George  
insomniawawa:

Hi,

I'm using renko bars in my strategies, but I have 2 problems with testing EAs by strategy tester.

Hi!

If you want to test strategies on classic renko chart, do not forget that, the value of Open[0] can never be used for opening/closing positions or for calculating indicators, because you get it when the block closes only. I recommend to use sbs renko chart with wicks instead (google it if you do not know how it looks).

I converted 10 pips renko block chart, by backtesting RenkoLiveChart V3.2 with every tick mode, based on M1 OHLC data (then i converted sbs blocks from them with a script). On these blocks even the original MACD Sample and Moving Average experts (with a stoploss, and using the current open value instead of the current close) could make huge profit on the 8 years backtest after an optimization. Then i converted the blocks from real tick data (same broker like at first!) by making a 99% quality backtest of this renko expert, and i could not optimize those original mt4 experts to make profit any more. With other words you always need real tick data for generating renko block chart.

I edited the open datetimes of the blocks too, because normally there were more blocks which opened in the same minute. I think that's why the open chart after testing shown opened orders far away from current price. So i exported renko chart from the mt4 and i copied the date and the time columns from a normal M5 chart to this renko block chart csv file. Then the tester always opened position on the right price, but this time conversion caused difference in calculating the swap values.

To avoid the mismatched charts errors i have one idea: use real tick data to generate blocks (always with wicks), then you can use "open prices only" mode in the strategy tester. That way you won't get these errors, plus the backtest and the optimization will be much faster too.

I recommend to try FSB strategy generator with this wicked sbs chart, because it can also give good strategy ideas.

Good luck!

RidoyRx
5
RidoyRx  
insomniawawa:

1. I opened it on M5, because there's no option to use strategy tester on M2.

2. I got it from http://novacodetrader.com/s/ for free. It's true, renko doesn't have wicks. It's additional mode in this script that allow to show it.

3. Any idea how to avoid these errors?

I visit the link but they show This mailing list is not currently active. Can you give me the script? My mail address is ridoy.khan111@gmail.com .

Please Sir.


Petrov297
28
Petrov297  
How to test strategy on ренко in a tester. 1. We open a tester of strategy and we put the adviser of RenkoLiveChart_v3.2, тайфрейм 1м and we press start-up. 2. We press a pause, further we open independently offline the schedule 2м, 3м, 4м и.т.д vobshchy what in the adviser will expose, we wring out a pause and the schedule with ренко began to jump. Attention to all speed of testing not to put will hang, after each run it is necessary to change in the adviser таймфрейм or to delete history, on all tics it is desirable not to put.
dabbler
1091
dabbler  
LordoftheMoney:

I recommend to try FSB strategy generator with this wicked sbs chart, because it can also give good strategy ideas.

That's a really neat program. Thanks for the pointer :-)
mt_nix
34
mt_nix  
insomniawawa:

Hi,

I'm using renko bars in my strategies, but I have 2 problems with testing EAs by strategy tester.


1. Even if I download good data where's no discrepancy between any timeframes and I have 90% modelling quality when I convert it to renko there're a lot of mismatched charts errors. Can I do something with that?

2. Strategy tester produce incorrect results when for example first bar is bearish and second is bullish. Conditions are met in latest bar, so EA opens short position, but it takes opening price from next bar, so in this case it takes better, higher price. Does anybody know script that covert standard charts to charts similar to renko, but when there's trend reverse it starts new bar from price that last bar was closed?


Hi,  You can do a reliable backtest if you have tick data. I've written a blog post on the topic. This one deals with MedianRenko charts, but the same can be applied to the renko charts.

Here is the link: http://www.az-invest.eu/how-to-properly-backtest-rangebars-medianrenko-renko-and-pointo-using-tick-data

Regards,

Artur

12
To add comments, please log in or register