Initialising Renko charts

Forums ProRealTime English forum ProOrder support Initialising Renko charts

Viewing 4 posts - 1 through 4 (of 4 total)
  • #130986

    I am with a group of people who use Renko blocks as one of the indicators for a trading system, which currently we trade manually. I would like to automate this, but I would like to have an automated Renko that looks exactly like the PRT one so that I can check my automated system against the charts, and so that manual entries would be exactly the same as my automated ones, in backtesting, at least. I looked on the forums for code that reproduce it, failed to find any, and wrote my own. It seems to work in that the blocks move in step with the PRT ones, but it isn’t initialising in the same  way, so my blocks are sometimes x points higher or lower than PRT’s, still moving the same amount in step, but with an offset of x. It seems to vary dependent on how many units are loaded, or simply when I load it.

    Do you know how PRT calculates its initial values for Renko? Is it possible to do what I’m trying to do?

    Many thanks.

     

    #131025

    still moving the same amount in step, but with an offset of x. It seems to vary dependent on how many units are loaded, or simply when I load it.

    That’s the thing with Renko charts. You will get a completely different chart just depending on when you start it.

    In real life this shouldn’t matter for your strategy because if it is truly robust then it can cope no matter when you start building your Renko blocks.

    #131050

    I think that the below code version can start the same way as the version of the platform, with a round number, therefore the bricks construction is synchronized with the platform.

     

    #131134

    Vonasi, thank you for your reply. Before I get to the strategy, it matters to me to get my indicator looking the same as the chart so that I can convince my fellow traders that my backtesting matches their spreadsheet results, so can be believed.

    Nicholas, thank you for the most beautiful code that I have seen in my life! It is a perfect match indeed, and what’s more, my Renko is in colour!!!    🙂

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login