New Renko System

Viewing 15 posts - 31 through 45 (of 56 total)
  • Author
    Posts
  • #65343 quote
    Real Pro
    Participant
    Average

    Yes, thanks.

    #65553 quote
    Real Pro
    Participant
    Average

    How did you go Nicolas?

    #65558 quote
    Nicolas
    Keymaster
    Master

    Enjoying my Sunday, what about you? 😉

    #65567 quote
    Nicolas
    Keymaster
    Master

    Please find attached the breakout indicator in its current state. You can choose the quantity of same renko boxes to allow or not the peaks or troughs detection with the ‘breakoutLength’ setting.

    Alai-n and Real Pro thanked this post
    #65781 quote
    Real Pro
    Participant
    Average

    Thanks Nicolas, much appreciated.

    Recently I’ve been focusing on volume waves, but I’ve realized a new price level (close > previous swing high or close<previous swing low) will rarely be reached without a strong volume wave anyway.  And unless new price levels are reached, there’s no trend.  So I’m sort of thinking that volume might be almost irrelevant for momentum/breakout trading.

    I’d love to see this as a system.

    #65793 quote
    Nicolas
    Keymaster
    Master

    will rarely be reached without a strong volume wave anyway. […]  thinking that volume might be almost irrelevant for momentum/breakout trading

    Sorry, but I don’t follow you.. In your opinion, do you think it is still interesting to add a kind of volumes testing in this indicator .. or not?

    #65797 quote
    Real Pro
    Participant
    Average

    I’m probably undecided as to the importance of volume.  Still looking at it.

    Would it be possible to have a cumulative volume for each leg (swing) of the renko, or does that mess up the chart?  That might be interesting to look at.

    Thanks for the great work.

    #65806 quote
    Nicolas
    Keymaster
    Master

    Well, almost everything’s possible. So the swing would be the same as the ones found with the last function I made? (the one that plot the support/resistance zones).

    #65810 quote
    Real Pro
    Participant
    Average

    Yes, same one.  I guess we could always set the breakout length to zero so as to see all volume swings.  Thanks again.

    #65815 quote
    Real Pro
    Participant
    Average

    There’s quite a bit online about how difficult (or impossible) it is to backtest renko brick systems.  Not sure if you’ve seen it?  TJ from Amibroker says range bars can be backtested but not renko.  fwiw!

    #65816 quote
    Nicolas
    Keymaster
    Master

    Renko bricks construction start at the first bar of the history, so indeed, the chart will never look the same if you start your data history 1 day or even 1 minute before the last time you opened it.. But that would not say that backtesting is not possible, it is only about the accuracy of backtests from one user to another one, from one day to another, etc.

    GraHal thanked this post
    #66063 quote
    Real Pro
    Participant
    Average

    Interested to see what you came up with.  🙂

    #66273 quote
    verdi55
    Participant
    Veteran

    Renko bricks construction start at the first bar of the history, so indeed, the chart will never look the same if you start your data history 1 day or even 1 minute before the last time you opened it.. But that would not say that backtesting is not possible, it is only about the accuracy of backtests from one user to another one, from one day to another, etc.

    This the main problem with Renko charts. In my eyes, it is only possible to evaluate them statistically : that is to vary first bricks and brick sizes systematically and then to determine an average result for the sum of these systems.

    So, for example, you define the first Renko brick yourself by setting it at a precise time in the chart. For example, at TIME = 010000 on date = 20140801. The upper limit of the first Renko brick will then be the closing price at this time, for example 9330 in the DAX. Then you define additional entry points for the first Renko brick : 9330 + 2.5, 9330 + 5, 9330 + 7.5, 9330 + 10 and so on. Maybe up to 9330 + 20, this depends on the timeframe you are trading in.

    Then you vary the brick sizes, for example from 15 to 25, step 1, when you trade the DAX in the 30 min chart.

    In total, you will have 9 different values for the start position of the first Renko brick, and 11 values for the brick size. Then you run a backtest on all of these 99 Renko systems with the different brick sizes and positions of the first brick as parameters. You will see that the final gain can vary by more than 50 %, seen from the best result down, only by varying the position of the first Renko brick.

    In the end, you determine the average gain per system by transferring the backtest result into Excel. Then only you will get a statistically quite reliable evaluation of a Renko system that will not depend on the exact position of the first Renko brick and on the exact brick size.

    In reality, you would also have to run a grid of several Renko systems at the same time, with different starting positions and brick sizes. Only this way you can average out the entirely random influence of the first Renko box and the brick size.

    eckaw thanked this post
    #66276 quote
    verdi55
    Participant
    Veteran

    Take this system, for example :

    //Renko Chart trading
    defparam cumulateorders = false
    defparam preloadbars = 1000
    
    boxsize = BS
    
    n = 1
    
    ONCE upbox = 4000 + xx
    ONCE downbox = upbox - boxsize
    
    If barindex >= 1000 then
    buysignal = 0
    shortsignal = 0
    
    IF close >= upbox + boxsize THEN
    newbricksup = (round(((close - upbox) / boxsize) - 0.5))
    diffup = newbricksup * boxsize
    downbox = downbox + diffup
    upbox = upbox + diffup
    totalbricksup = totalbricksup + newbricksup
    totalbricksdown = 0
    
    If (totalbricksup[1] = 0 OR totalbricksup[1] = 1) AND totalbricksup >= 2  then
    buysignal = 1
    endif
    
    ELSIF close <= downbox - boxsize THEN
    newbricksdown = (round(((downbox - close) / boxsize) - 0.5))
    diffdown = newbricksdown * boxsize
    upbox = upbox - diffdown
    downbox = downbox - diffdown
    totalbricksdown = totalbricksdown + newbricksdown
    totalbricksup = 0
    
    If (totalbricksdown[1] = 0 OR totalbricksdown[1] = 1) AND totalbricksdown >= 2  then
    shortsignal = 1
    endif
    
    ENDIF
    
    If buysignal = 1 then
    buy n contracts at market
    endif
    
    If shortsignal = 1 then
    sellshort n contracts at market
    endif
    endif

    I have tested this system in the DAX 30 min chart on 200.000 bars, starting in March, 2009.

    The upper border of the first Renko brick (“upbox”) is set to 4000 in the first bar. It can be shifted by adding a quantity xx in line 9.

    As an example, we look at the results with a brick size of 25 points (this is called boxsize BS here in line 5) in a DAX 30 min chart (200.000 bars).

     

    The best result with a brick size of 25 points and xx = 14 is 13314 points :

    [attachment file=66277]

     

    The worst result with a brick size of 25 points and xx = 24 (only the first Renko brick is shifted by 10 points vs. the best result) is 7920 points :

    [attachment file=66278]

    Now, when we vary the brick size between 20 and 30 (step size 1) and shift the position of the first brick in steps of 3 points (up to a total shift of 24 points, see the .itf file), we get results between 14705 points and 6676 points.

    The average result  determined by Excel of all of these 99 Renko systems with different brick sizes and first bricks is 10265 points.

    GraHal, Real Pro and Oliviertrader2020 thanked this post
    #66283 quote
    GraHal
    Participant
    Master

    Phew! You need a few beers or a glass of whiskey after all that lot verdi55  🙂

    Thank you for your time educating us!

    GraHal

    verdi55 thanked this post
Viewing 15 posts - 31 through 45 (of 56 total)
  • You must be logged in to reply to this topic.

New Renko System


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
juanj @juanj Participant
Summary

This topic contains 55 replies,
has 9 voices, and was last updated by Nicolas
5 years ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 11/13/2017
Status: Active
Attachments: 20 files
Logo Logo
Loading...