• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 3:48am
  • Search
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 3:48am
Search
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Search
Search
Search

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

How to backtest Renko? 88 replies

Need a simple MQ4 Alert Code for Renko System 0 replies

I need some MQ4 help from a real MQ4 programmer 2 replies

Visual backtest result different from non-visual backtest 0 replies

moutaki Mq4+fibo grid Mq4=profit+ease 39 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 19
Attachments: Renko BackTest (RenkoToCSV.mq4)
Exit Attachments

Renko BackTest (RenkoToCSV.mq4)

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Edited Jan 2, 2016 7:50pm Jan 1, 2016 9:55pm | Edited Jan 2, 2016 7:50pm
  •  ekud87
  • | Joined May 2014 | Status: Member | 77 Posts
To begin, I want to clarify that English is not my native language. I apologize for my bad English.

Thanks to GoldTheHun for his clarifications regarding renko.

For a long time I could not make backtest Renko charts.

For all who are in a similar situation. Here 'a guide step by step for a backtest Renko charts, as simple as possible.

we are going to need:
1. Another copy of metatrader on your PC (any broker) (have 2 metatrader installed).
2. install some software for graphics ticks. For example SQ Tick Downloader or TickHistorylitte, etc.
3. have an EA, indicator or script that generates graphics Renko (I use RenkoLiveCharts_Pimped_V4_13).
4. download the "RenkoToCSV" I have programmed. (actually it is an indicator) is not strictly necessary but saves labor.
5. have the EA who want to make the backtest.

Step 1.
install another copy of MT4 on your PC and disable automatic login.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 1.png
Size: 126 KB



Step 2.
Go to the center of history. Delete all records for the currency you want to test.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 2.png
Size: 154 KB



Step 3.
Download the M1 chart of the currency you want to test with the SQ Tick Downloader orTickHistorylitte, etc.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 3.png
Size: 279 KB



Step 4.
Import data M1 downloaded onto our "useful" copy of MetaTrader 4 (the one commonly used).
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 4.png
Size: 228 KB



Step 5.
Generate Renko graph using the EA (RenkoLiveCharts_Pimped_V4_13), indicator or script that generates Renko charts. For more accurate results, better use renko without gaps ( http://www.forexfactory.com/showthread.php?t=535170 )
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 5.png
Size: 172 KB



Step 6.
Open the Renko chart and apply "RenkoToCSV" indicator to the chart.
Attached File
File Type: mq4 RenkoToCSV.mq4   4 KB | 2,891 downloads

Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 6.png
Size: 164 KB



Step 7.
Open the data folder of metatrader. go to the Files folder, seek the file Renko_Backtest_____.csv and copy it to the desktop.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 7.png
Size: 232 KB



Step 8.
Open center of history (in the MetaTrader 4 did not use, it offline) and import the file Renko_Backtest_____.csv to history in M1.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 8.png
Size: 186 KB



Step 9.
Carry out the backtest your EA on M1.
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 9.png
Size: 203 KB
  • Post #2
  • Quote
  • Jan 1, 2016 9:55pm Jan 1, 2016 9:55pm
  •  ekud87
  • | Joined May 2014 | Status: Member | 77 Posts
Step 10.
Enjoy (with caution)
Attached Image (click to enlarge)
Click to Enlarge

Name: PASO 10.png
Size: 125 KB
  • Post #3
  • Quote
  • Jan 2, 2016 5:01am Jan 2, 2016 5:01am
  •  iwjw
  • | Joined Mar 2011 | Status: Member | 463 Posts
Thanks for your explanation
But one thing you have to keep in mind:
With a "traditional" renko chart builder the open price of a candle is not correct if a candle is in reverse direction of the previous one
(up followed by down and vice versa)
A Backtest will never work correctly
I suggest to use this Tool instead: http://www.forexfactory.com/showthread.php?t=535170 to create the renko chart
  • Post #4
  • Quote
  • Jan 2, 2016 5:36am Jan 2, 2016 5:36am
  •  GoldTheHun
  • Joined Nov 2014 | Status: Member | 384 Posts
Quoting ekud87
Disliked
Step 10. Enjoy (with caution) {image}
Ignored

Hello Ekud,

Congrats on the new tool. Thank you for sharing it with us.
iwjw has a point warning about the open price of the renko charts. The open price on the renko charts are not real open prices. To get the real open price you have to create non gapped renko by Mathtrader. Or use the following range bars ea, the open will always be correct.

Attached File
File Type: mq4 rangeboxsize.mq4   11 KB | 1,019 download


Thanks once again and good luck
  • Post #5
  • Quote
  • Jan 2, 2016 8:50pm Jan 2, 2016 8:50pm
  •  ekud87
  • | Joined May 2014 | Status: Member | 77 Posts
I'm thinking ... how hard it is to make a program that generates the renko candles directly from history ticks?? (downloaded from SQ_Tick_Downloader or Tick_History_Litte etc)

I would like to "embark" on that project
  • Post #6
  • Quote
  • Jan 2, 2016 11:07pm Jan 2, 2016 11:07pm
  •  hovedguy
  • Joined Dec 2015 | Status: Member | 487 Posts
Thanks ekud for such a thorough guide line. It's gonna be my first thing to do tomorrow... cheers !!
  • Post #7
  • Quote
  • Jan 3, 2016 10:18am Jan 3, 2016 10:18am
  •  hovedguy
  • Joined Dec 2015 | Status: Member | 487 Posts
Hi Ekud

I have downloaded the tick data from SQ Tick Downloader to csv and the data looks like as posted below.

Problem is its not importing to mt4 history center, is the data downloaded in correct format?
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 65 KB
  • Post #8
  • Quote
  • Edited at 11:04am Jan 3, 2016 10:50am | Edited at 11:04am
  •  hovedguy
  • Joined Dec 2015 | Status: Member | 487 Posts
and this is the data I'm getting while importing....
Attached Images
  • Post #9
  • Quote
  • Jan 3, 2016 12:14pm Jan 3, 2016 12:14pm
  •  iwjw
  • | Joined Mar 2011 | Status: Member | 463 Posts
As far as I know you can't import tickdata into the history
Each entry only represents a whole candle with OHLC and Volume
It's not the same as with the .fxt files the tester is using
  • Post #10
  • Quote
  • Jan 3, 2016 12:16pm Jan 3, 2016 12:16pm
  •  hovedguy
  • Joined Dec 2015 | Status: Member | 487 Posts
Sorry, my mistake, I had imported tick data instead of M1. Thanks a lot for the guide. Now MathTrader will get some rest
  • Post #11
  • Quote
  • Jan 30, 2016 7:33pm Jan 30, 2016 7:33pm
  •  damian78
  • | Joined Jan 2016 | Status: Member | 25 Posts
Unlike the backtest because there with a demo account. the negotiations are close late then lost
  • Post #12
  • Quote
  • Jan 31, 2016 3:12pm Jan 31, 2016 3:12pm
  •  damian78
  • | Joined Jan 2016 | Status: Member | 25 Posts
examples
Attached Images (click to enlarge)
Click to Enlarge

Name: 4.PNG
Size: 145 KB Click to Enlarge

Name: 2.PNG
Size: 141 KB Click to Enlarge

Name: 3.PNG
Size: 141 KB
  • Post #13
  • Quote
  • Feb 23, 2016 7:33pm Feb 23, 2016 7:33pm
  •  mokuro89
  • Joined Mar 2015 | Status: Member | 449 Posts
ekud87, thanks so much for this thread.
  • Post #14
  • Quote
  • Feb 23, 2016 7:46pm Feb 23, 2016 7:46pm
  •  ekud87
  • | Joined May 2014 | Status: Member | 77 Posts
Hi all...
sorry, I had not seen the messages.
I will read them all
  • Post #15
  • Quote
  • Feb 23, 2016 8:03pm Feb 23, 2016 8:03pm
  •  ekud87
  • | Joined May 2014 | Status: Member | 77 Posts
Quoting damian78
Disliked
Unlike the backtest because there with a demo account. the negotiations are close late then lost
Ignored
hello damian
mmm I think it's your problem expert advisor, expert advisor is the opening and closing operations
  • Post #16
  • Quote
  • Edited at 10:09am Apr 1, 2016 9:00am | Edited at 10:09am
  •  Ginto
  • | Joined Apr 2016 | Status: Junior Member | 1 Post
Hello,

Thanks for this post. Please do not excuse my poor spelling but English is not my native language.

Unfortunately, I have problems with Step7. The indicator created no Backtest_CSV file and gives me no errors.
I hope you could help me.

Thank you very much.
  • Post #17
  • Quote
  • Apr 14, 2016 6:16pm Apr 14, 2016 6:16pm
  •  damian78
  • | Joined Jan 2016 | Status: Member | 25 Posts
You can modify renko 3.2 to not generate ticks when the price is between the open and close of the previous candle?
  • Post #18
  • Quote
  • Apr 16, 2016 1:15pm Apr 16, 2016 1:15pm
  •  mokuro89
  • Joined Mar 2015 | Status: Member | 449 Posts
Quoting damian78
Disliked
You can modify renko 3.2 to not generate ticks when the price is between the open and close of the previous candle?
Ignored
Not sure if this is the thread to ask this, but that is a good idea, would save me alot of CPU w/o unnecessary ticks
  • Post #19
  • Quote
  • Apr 16, 2016 8:10pm Apr 16, 2016 8:10pm
  •  damian78
  • | Joined Jan 2016 | Status: Member | 25 Posts
and it would resemble the BackTest
  • Post #20
  • Quote
  • May 15, 2016 8:36am May 15, 2016 8:36am
  •  Xtradera
  • | Joined Apr 2016 | Status: Junior Member | 1 Post
Hello fellow traders.

I tried this way,i performed a test last year and i used every tick method .The test was not correct, bacause i found one important glitch ,which can be found when you use a a couple of different experts which sumilate Renko bars. Very often the next bar is opened not from the price of closing of the previous one bar. I will show you pictures to better understand.

http://www.imagebam.com/image/3954ed483842477

http://www.imagebam.com/image/62b608483842491

http://www.imagebam.com/image/4a5478483842509

This way the results are incorrect ,they show a bigger profit.

If you dont have that kind of problem,i will be more then happy if you can help me with any kind of suggestion, or to suggest different method for back testing for Renko bars.

Thanks in advance .
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • Renko BackTest (RenkoToCSV.mq4)
  • Reply to Thread
    • Page 1 2
    • Page 1 2
1 trader viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2019