“Pure” Renko strategy

“Pure” Renko strategy

Hello everyone,  

Do you remember my work on the RENKO ?    

From this indicator, we will try a very simple strategy.

The simplest is the “PURE” Renko.

For the definition of the Renko, I refer you to other sites that explain it very well.

We go LONG if : we have 2 “bullish” Renko bricks in the same direction.

We go SHORT if : we have 2 “bearish” Renko bricks in the same direction.  

So we are constantly on the market. We are just following the trend.

Here is the result of the backtest, on the DAX : H1 graphs (no matter, because the important thing is the size of the Renko bricks), Renko size : 40 points, Spread: 1 point, test “tick by tick”.

As you can see, the strategy is profitable. Low success rate, compensated by some highly winning trades.

I think there’s plenty of way for improving this strategy idea, adding refined entry rules, a breakeven, a trend filter, and so on.

And one can test this strategy on the forex with other sizes of bricks.

Here is the code (very simple, but the indicator words well also) :

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Nicolas • 08/22/2017 #

    Good job, but I think there is something wrong in the description since trade direction is changing with only 1 contrarian renko brick in your code.

  2. verdi55 • 08/22/2017 #

    Running a single Renko strategy with a fixed box size is usually not a good idea, because the results depend extremely on

    1. the box size, and 2. on the initial value of the first box.

    So, if Renko strategies should be useful, they must be used as statistical “grates”, that is, using many combinations of box sizes and initial positions of the first box at the same time. Then it is possible to get good results over the sum of all parameter sets, and purely accidental results are avoided.

    In principle, this holds for all “optimized” (curve-fitted) strategies as well, but in Renko charts there is the additional complication of the exact value of the first box that determines the behavior of all the rest.

    • Wilko • 08/22/2017 #

      Good point! For intraday strategies, could not the starting point problem be overcome by eg. always setting starting point to today’s official market open or yesterday’s official market close?

  3. Fabrizio_T • 08/22/2017 #

    Hi, have you tested on the period 30 julay – 30 September 2015?

  4. grzemariusz • 08/22/2017 #

    Hi I use your strategy but i don’t know how to implement position size to the code
    thanks for help

  5. nonetheless • 08/22/2017 #

    Hi, thanks for the introduction to Renko charts! I modified this slightly for the DJI – 13 box on a 5min chart, added a time frame for London and a $12 trailing stop. In the backtest it looks stellar – 75% wins, 2800% gain over 17 months – too good to be true! When I run it in demo it’s a different story, mostly losses. Any idea why there’s such a discrepancy between the backtest and the live action? Here’s the code:

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    // The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the “FLATBEFORE” time.
    DEFPARAM FLATBEFORE = 143000
    // Cancel all pending orders and close all positions at the “FLATAFTER” time
    DEFPARAM FLATAFTER = 210000

    boxSize = 13

    once renkoMax = ROUND(close / boxSize) * boxSize
    once renkoMin = renkoMax – boxSize

    IF high > renkoMax + boxSize THEN
    WHILE high > renkoMax + boxSize
    renkoMax = renkoMax + boxSize
    renkoMin = renkoMin + boxSize
    WEND

    ELSIF low < renkoMin – boxSize THEN
    WHILE low < renkoMin – boxSize
    renkoMax = renkoMax – boxSize
    renkoMin = renkoMin – boxSize
    WEND
    ENDIF

    buy 1 CONTRACT at renkoMax + boxSize stop
    sellshort 1 CONTRACT at renkoMin – boxSize stop
    // Stops and targets
    SET STOP $TRAILING 12

    • Bard • 08/22/2017 #

      Because you’ve curve fitted the parameters. Try to look for a stable range of box size/trailing stop values.

      You can do this by dragging the optimised backytest results to the desktop and then drag the data into excel.
      Bring/drag the gain column over to the far right, select “gain” and “boxsize” (optimised parameter) and then use a scatter chart. If the values are scattered all over the place it’s unlikely to work but if you find a stable range of boxsize values that produce profits then it’s likely that the volatility/boxsize can be varied a little and still be profitable. Choose a mid value.

  6. Pinou De Rossi • 08/22/2017 #

    Bonjour.
    avez vous trouver une solution à ce code? merci

  7. Chetts • 08/22/2017 #

    Hi Guys – i cant seem to add any other indicators to my Renko charts other than MA’s ?? Can someone please assist me with this. Thanks Steve

    • Nicolas • 08/22/2017 #

      Yes, it is possible to add any indicators on a renko chart but with version 11 or ProRealTime. Next time, please use forums to ask questions about the platform, thanks.

  8. stratobast • 08/22/2017 #

    Good afternoon everyone.
    Thanks Doctrading for your work. I have an issue while using this code (as an indicator) to simulate renko bricks on candlestick chart. I don’t have the exact same behaviour between the renko chart and the renko indicator. The number of green or red bricks on a movement is the same in approximately half of the time. My two charts have the same timeframe (only a few ticks in order to be more precise on the building of the bricks) and the same number of units displayed. So I don’t understand why the two charts are not identical.
    Do you have an idea of what could explain the difference between true renko chart and renko indicator?
    Thank you for your help.

  9. stratobast • 08/22/2017 #

    My bad guys. I understood what was the problem. The indicator uses highs and lows for the Renko building. However, my Renko chart is built with closes. That explains the differences. The indicator give the same result as my chart replacing “high” and “low” by “close” in the code.

  10. samwarduk • 08/22/2017 #

    Has anyone tried this on Bitcoin GBP1?

    The results look amazing but every time mine tries to enter a trade it says insufficient funds with £10,000 in the account.
    Does anyone have any ideas?

    I am not sure if this strategy is taking a huge position?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+2 more likes

Related users ' posts
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
Nicolas le code est déjà sur cette page, inutile de fournir un autre format ?! Les fichiers itf sont...
Novice-Surfer Hello IV Mcm, You are my leader ! Your work is incredibly precise, thank you very much f...
Mikolajek Merci pour votre excellent travail !
mickey992 salut merci pour ton partage et ton travaille
patapouf Hi Vivien René I just discovered your “Ordered trend-following stocks Screener”. Great work...
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
Screw27 Hi man, I installed the indicator and i don't know why but my graph it is so big
HelixKing sounds interesting I'll take a look
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
Screw27 Salut nicolas j'aimerais savoir tes résulats grace a cettte methode
eva.g.forsgren It dose not work, I get a strap instead of candels???????????????????????????????????????????
Nicolas That indicator is the one below the chart. The indicator to put on the price chart is this o...
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...

Top