Renko automated trading with moving average on candlesticks chart

Renko automated trading with moving average on candlesticks chart

This automated trading strategy is built upon pseudo renko chart on ordinary candlesticks one.

Originally coded by request on French forums, this strategy use a combination of the renko on chart indicator available here : http://www.prorealcode.com/prorealtime-indicators/renko-boxes-on-price-chart/ and a moving average built within the close of each renko brick. The strategy consist of a simple cross over of the renko close and the moving average.

This code seems to work well on DAX on a 15 minutes timeframe. I know renko don’t deal with time, but my simple test shows that conditions which are tested only one time per bar are giving good results on this timeframe. I don’t have test much on any other instrument or other timeframe though. But it would certainly be profitable with any other ones as there are only 2 parameters to set : the brick size (20 points default size) and the moving average period (20 periods by default), which are quiet common and may not be so curve fitted..

Test were made with 1 point spread.

 

 

 

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. Doctrading • 05/09/2016 #

    Hello Nicolas,
    Nice Code ! I was just looking to make my own Renko system, because I think Renko is really profitable on the long term. My manual backtests on Renko show very profitable tests with acceptable drawdown, but I haven’t test  sufficient data.
    I have my own trading rules for Renko, maybe I will post my own code when I create it.Best regards,

    • Nicolas • 05/09/2016 #

      Thanks. Graphical representations that rely only on price and not time are always more accurate (renko,range,tick bars). I encourage your research in this way 🙂
      This system is only a simple price over moving average. The way I changed the moving average calculation to not take time into consideration would be adapted to any other indicators, such as Supertrend, RSI and so on..

  2. ladefense • 05/09/2016 #

    best equity curve in the site , and with spread included …..
     
    @ nicolas :  penses tu que les positions du backtest correspondent a celles qui auraient ete prise en reel ?

    • Nicolas • 05/09/2016 #

      Yes I think it would be the same as in real time trading, it not use any kind of takeprofit, stoploss or trailing stop, just stop and reverse orders and trade open and close cannot be in the same candle.
      The worst thing in this strategy is that you are always in the market and you have to deal with overnight fees which are not included.
      Spread are also larger in the evening on DAX. But this strategy were made by request on forum, I saw it could gave good results, so here it is. DAX was the opened chart when I coded this strategy, anyone can test it with any other instrument with different bricks size and moving average period, it can surely give an edge on fine equity elsewhere or be part of an automated trading strategies portfolio.

  3. ladefense • 05/09/2016 #

    ok merci !

  4. SakisTrader • 05/09/2016 #

    Evening Nicolas,
    Just had a quick look and backtesting a further 4 years to 2008 does not produce very good results.
    I realise this system is very simple at this stage and not complete. 
    I do want to explore the use of renko on time based charts myself so this code will be helpful I’m sure.
    Thanks.

    • Nicolas • 05/09/2016 #

      Yes you are right this is a simple system as we are only talking about 2 “lines in the sand” that cross each other.. 🙂

  5. zilliq • 05/09/2016 #

    Thanks Nicolas,
    Very fluctuant results (very good in 5 mn, very bad in 1 mn…)
    Personnaly, I never found good results with renko (signals appear very late…)
    Have a nice day
    Zilliq

    • Nicolas • 05/09/2016 #

      Since it doesn’t use any hard stoploss or takeprofit, we can stick on any timeframe that give good results.

  6. Doctrading • 05/09/2016 #

    Hi all, Hello Nicolas,
    I’ve just coded another Renko strategy, with the same DAX M15 (to make a comparison)
    Buy I have the same problem : the test is (very) positive only after 2013. Before, results are quite bad.Do you have an idea : why ?
    I wouldn’t bet on a strategy that wins for only the last 2 years, whereas it wasn’t profitable for the 5 years before…
    Thanks for your advice.

    • Nicolas • 05/09/2016 #

      Intraday randomish patterns, post subprimes crises, price random walk, curve fitted strategy maybe? Are you talking about this one or another one? Because this one haven’t been tested by myself previous this date.
      Also, renko bars are point fixed and reflect price movement (20 points here), which can be a serious parametric bias. I know some people like to adapt renko bar size with division of daily ATR, this is another idea of improvement.

  7. Doctrading • 05/09/2016 #

    Yes, I was talking of your strategy, and my own code. And the results are really different according to the box size. So I think that I can’t bet on this strategy. Maybe with much improvemenets…

    • Nicolas • 05/09/2016 #

      It’s renko bricks size. 20 points mean nothing more than 13 or 17 ones! Also, please consider that renko bricks construction begin at the very first price of the loaded history, so 20 bricks size would have been completely different if history begin 10.000 bars ago than 12.000 bars.. Equity curve of a backtest is a line on a computer screen, there’s so much more behind it.. 😉

  8. mbaker15 • 05/09/2016 #

    Nicolas
    Just been studying your strategy, is this something you still run live? How have your results been? Could you possibly add money management so i can reinvest the strategy profit?
     
    Mark

    • Nicolas • 05/09/2016 #

      I’m not trading it, this is a concept about trading renko bricks on price  chart with ProOrder which is normally not possible with renko charts. Of course this strategy can be traded with the renko bricks size you want. About money management, you can add your request on forums and I’ll answer your request there. Thank you.   

  9. Peak • 05/09/2016 #

    Hello Everyone.. I am new to Forex as well as to prerealcode. Could anyone suggest me how to use the above code in EA or anyone one has the EA with above code? Thanks in advance.

    Peak.

    • Nicolas • 05/09/2016 #

      You can download the above code in .itf file formant and import it directly into your trading platform, just follow these instructions: https://www.prorealcode.com/import-export-prorealtime-code-platform/

  10. Peak • 05/09/2016 #
  11. Peak • 05/09/2016 #

    Thanks Nicolas. Can I get the above code in mq4 format. Many thanks in advance.

    Peak.

    • Nicolas • 05/09/2016 #

      No. This website is about prorealtime trading platform, not MT4 sorry. However, you can ask for custom coding on this page: https://www.prorealcode.com/trading-programming-services/

  12. Wilko • 05/09/2016 #

    Interesting code, thanks! It will provide me with a good starting point for further development and testing.
    One question: Why do you multiply boxsize by 2? I am sure there is a simple reason, but right now I am feeling thick-headed and not able to figure out why by myself.

    Wishing you a festive christmas season!
    /Fredrik

    • Nicolas • 05/09/2016 #

      contrarian renko boxes are 2 times taller than the brick size.

avatar
Register or

Likes

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

+4 more likes

Related users ' posts
Nicolas Good job Gabri, I confirm that with the new ProRealTime v11, everyone will be able to use in...
Slowlyslowly can u just help me with the exact definition of percbox , mm and period to understand will a...
YvesRobert Merci beaucoup Nicolas. Existe t'il un petit programme qui permet de tracer sur la graphe en...
Nicolas Oui il y a celui ci: https://market.prorealcode.com/product/prt-renko/?lang=fr
YvesRobert Bonjour Nicolas, j'ai une question technique à te poser. Je visualise souvent le cours en RE...
Nicolas
7 years ago
stratobast Good afternoon everyone. Thanks Doctrading for your work. I have an issue while using this ...
stratobast My bad guys. I understood what was the problem. The indicator uses highs and lows for the Re...
samwarduk Has anyone tried this on Bitcoin GBP1? The results look amazing but every time mine trie...
Nicolas in order to use renko bricks in a trading strategy or in a screener, I would recommenced thi...
pp_playaflamenca I understand. I visited the page https://market.prorealcode.com/product/prt-renko/ Actua...
Nicolas renko bricks are not repainting, they are using the price movement in their definition. But ...
verdi55
8 years ago
Marcel Hi, I tested this strategy on Spot Gold with a brick size of 20 on the weekly timeframe with...
Nicolas Because the renko chart construction begin at the first price of the loaded history. So you ...
JOKAMAURICE I am learning to code. I try to understand these lines newbricksup = (round(((close - upbr...
Doctrading
9 years ago
Nicolas Use Highs and Lows instead
Doctrading This new code with highs and lows seems to work : boxSize = 20 // On aime bien que...
DonDollar Gentlemen, just a quick question. When I am adding this column to my code, PRT shows an err...
Nicolas
9 years ago
Alessio Nicolas Hello, I have recently started using this platform, I would like to test a system th...
Nicolas Please use forums for trading strategies queries. Many thanks. 
PassionTrading Salut Nicolas, Je regarde cette indicateur très intéressant par le fait qu'il est superposé...
Nicolas
9 years ago
cedwimmer Hab es schon gefunden vielen Dank!:)
guidocir Hello Nicolas, I imported your code, but it doesn't draw many boxes, but just a single one...
Nicolas It depends of your settings. Try to reduce the box size or to expand the units displayed.

Top