Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

View Poll Results: What Data would help develop your system?
M5 4 44.44%
M15 0 0%
M30 1 11.11%
H1 2 22.22%
H4 0 0%
Other 2 22.22%
Voters: 9. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #161 (permalink)  
Old 12-31-2006, 02:04 AM
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 249
Craig is on a distinguished road
This means close[0] is current Ask (or Bid), which unless you are using tick data should be avoided anyway because it's probably 'interpolated' data.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #162 (permalink)  
Old 12-31-2006, 02:51 AM
Senior Member
 
Join Date: Oct 2006
Posts: 206
aegis is on a distinguished road
Quote:
Originally Posted by Craig
I have always found that systems that needed to be optimized to be profitable never work very well on unseen data. Systems which work well on unseen data seem to need very little optimizing. Adding another degree of freedom in response to a failing system would seem suspect based on this experence, but I could be wrong! For an example of over optimzation, witness the performance of Firebird in the MQL trading competition, started out well but crapped out after a couple of weeks (but still came third!)
The problem is, I've yet to come across a system that works well on unseen data over the long run (years) without tweaking. I don't believe a system like that exists. All systems are optimized to some degree obviously.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #163 (permalink)  
Old 12-31-2006, 03:08 AM
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 249
Craig is on a distinguished road
I used to think they didn't as well, but they do.

Obvously any TA based system has some degree of optimization, I guess the problem is how much tweaking should you do? I think WNW's post sums it up, the system should demonstrate profit before tweaking.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #164 (permalink)  
Old 12-31-2006, 03:14 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Hmm, I was hoping that someone had found a reason all my EAs go to zero during backtest Unfortunately not... As Craig stated, the 'close' during say, backtest in Visual Mode, will be what the price is at that instant - ie the current price. Only when the bar completes will the 'close' take it's final value. Also, in the link posted above, the guys EA is not using 'Bars' correctly so I don't think there is an issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #165 (permalink)  
Old 01-06-2007, 05:16 PM
BrazilianTrader's Avatar
Senior Member
 
Join Date: Sep 2006
Location: Brazil
Posts: 138
BrazilianTrader is on a distinguished road
Quote:
Originally Posted by Nicholishen
Tick by Tick data anyone? These files contain one year of tick by tick M1 EURUSD. Thank God for solid connections, eh? ...a Gift for everyone who contributes to this wonderful forum. It took me a long time to score this little gem, so Enjoy!

Instructions:
Before coping the files to their appropriate places you should close MT4, otherwise the data may become corrupt.

EURUSD1_0.fxt needs to be placed in “C:\Program Files\MetaTrader\tester\history” folder.
EURUSD1.hst needs to be placed in “C:\Program Files\MetaTrader\history\InterbankFX-Demo” folder.

In MT4 we have two groups of symbols. We have a group of symbols for STD accounts, and then we have another group for minis (where an m is appended to the STD symbols). The rates we publish for STD account and minis are exactly the same. But MT4 has different symbols for them, and we have chosen to stick to using the STD symbols for back testing purposes. If you have not already opened a STD demo account in MT4 you will need to before the data you downloaded is usable in MT4. If you plan to use a STD demo account and a mini demo account, make sure you are logged into the STD demo before you try to use this tick data on back tests, otherwise you will not get the result you expect.

When you have MT4 and the Tester window up, you should have something that looks like the picture I have attached. You should have the name of the Expert Advisor you want to do a back test on in the Expert Advisor field. To use the data I gave you, you need to have 4 fields with specific settings.
1) Symbol is set to EURUSD (not EURUSDm)
2) Model is set to Every tick (based on all available least timeframes with fractal interpolation of every tick)
3) Period set to M1
4) Recalculate needs to be un-checked.
The other settings you can set to what you want. Use date is used to back test only a certain time range. If Optimization is set, the back tester will do multiple passes, tests, depending on what you have setup in the Expert properties dialog. When you have what you want you click Start and it will start the test(s).

Thank you for the real tick data.

You gave us an example of m1 data for backtest only over m1 data.

How could I proceed to backtest on h1 data? Is there a way I could convert this ".fxt" m1 data to a ".fxt" h1 data so I can have 99% with h1?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #166 (permalink)  
Old 01-29-2007, 05:43 PM
holyguy7's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 504
holyguy7 is on a distinguished road
Tick Data Download for Accurate Backtesting

I was wanting to know if there was a website that someone is upkeeping that is collecting Tick Data for Metatrader 4.

I understand that there is a nifty little tool that can collect it and I would like to collect and upload and download others tick data.

The Tick Data collector is found HERE:

http://codebase.mql4.com/517

Seems that we can use tick data to get accurate backtests for scripts now. Anybody know of a place that is allowing downloads and uploads of tick data?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #167 (permalink)  
Old 01-29-2007, 05:43 PM
holyguy7's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 504
holyguy7 is on a distinguished road
Tick Data Download for Accurate Backtesting

I was wanting to know if there was a website that someone is upkeeping that is collecting Tick Data for Metatrader 4.

I understand that there is a nifty little tool that can collect it and I would like to collect and upload and download others tick data.

The Tick Data collector is found HERE:

http://codebase.mql4.com/517

Seems that we can use tick data to get accurate backtests for scripts now. Anybody know of a place that is allowing downloads and uploads of tick data?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #168 (permalink)  
Old 01-29-2007, 07:24 PM
thn5625's Avatar
Junior Member
 
Join Date: Oct 2006
Posts: 10
thn5625 is on a distinguished road
I know of a place I just found yesterday. But here are the limitations:
-10 sec bars are the smallest increment (not tick but close enough)
-goes back only about 2004 on most pairs
-You can only download a max of 10,000 bars per download. You can download all the data you want but it will have to be broken down per 10,000 increments.

The good:
-Its free.
-and its free.

OK: you'll have to download it via csv format (Excel, ect..) To use it in metatrader youll have to take out the headers and save it under csv not xls. Then you can export it in Metatrader using the History Window.

Here's an issue that has been plaguing all of us. Corrupt data. Well if you scan through historical charts you'll notice gaps of missing data or hi and lows that are off. BUT when you pull up the actual data the missing pieces arent actually missing. Its just screwed up so it doesnt show up on the chart. The main issue I have noticed is the high and low values seem switch, making the high actually a low. Therefore the computer just skips the bar. Giving you a gap.
Another issue are holidays. I noticed on Xmas and New Years bars actually showed up when in reality NOTHING happens during those days. Why? Anyways here are some solutions to clean it up:

For the faulty hi and low I was thinking of cleaning it up on 10 sec data. Just remove the hi and low values and replace it with open and close values. Do this with ALL the bars unless anyone can develop an program that can find these errors and correct it automatically. Anyways with tick data replacing the hi and lo shouldnt mess up the data too much if its going to be used for M1 or higher. Even with tick by tick trading the hi and lo isnt varied too much from the open and close.

For the holiday ticks I propose replacing it with one price: the closing price of the closing bell. Therefore we have a more realistic market. I wonder if we backtest skipping these major holidays would we get more accurate results.

By the way the above issues I have found in all data from Metatrader to Alpari to the link below. There are ways to clean it up but it will take some work.

Here's the link:
http://www.forexrate.co.uk/forexhistoricaldata.php

Also, Oanda gives you free tick by tick if you have a $1000.00 account balance or you are in academics. But it only goes to 2 years. Youll have to pay if you want to go more than two years. The tick data they use comes from their own data so its pretty reliable.

Holyguy I hope this helps and lets collaborate on this project..

Last edited by thn5625; 01-29-2007 at 07:30 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #169 (permalink)  
Old 01-29-2007, 07:24 PM
thn5625's Avatar
Junior Member
 
Join Date: Oct 2006
Posts: 10
thn5625 is on a distinguished road
I know of a place I just found yesterday. But here are the limitations:
-10 sec bars are the smallest increment (not tick but close enough)
-goes back only about 2004 on most pairs
-You can only download a max of 10,000 bars per download. You can download all the data you want but it will have to be broken down per 10,000 increments.

The good:
-Its free.
-and its free.

OK: you'll have to download it via csv format (Excel, ect..) To use it in metatrader youll have to take out the headers and save it under csv not xls. Then you can export it in Metatrader using the History Window.

Here's an issue that has been plaguing all of us. Corrupt data. Well if you scan through historical charts you'll notice gaps of missing data or hi and lows that are off. BUT when you pull up the actual data the missing pieces arent actually missing. Its just screwed up so it doesnt show up on the chart. The main issue I have noticed is the high and low values seem switch, making the high actually a low. Therefore the computer just skips the bar. Giving you a gap.
Another issue are holidays. I noticed on Xmas and New Years bars actually showed up when in reality NOTHING happens during those days. Why? Anyways here are some solutions to clean it up:

For the faulty hi and low I was thinking of cleaning it up on 10 sec data. Just remove the hi and low values and replace it with open and close values. Do this with ALL the bars unless anyone can develop an program that can find these errors and correct it automatically. Anyways with tick data replacing the hi and lo shouldnt mess up the data too much if its going to be used for M1 or higher. Even with tick by tick trading the hi and lo isnt varied too much from the open and close.

For the holiday ticks I propose replacing it with one price: the closing price of the closing bell. Therefore we have a more realistic market. I wonder if we backtest skipping these major holidays would we get more accurate results.

By the way the above issues I have found in all data from Metatrader to Alpari to the link below. There are ways to clean it up but it will take some work.

Here's the link:
http://www.forexrate.co.uk/forexhistoricaldata.php

Also, Oanda gives you free tick by tick if you have a $1000.00 account balance or you are in academics. But it only goes to 2 years. Youll have to pay if you want to go more than two years. The tick data they use comes from their own data so its pretty reliable.

Holyguy I hope this helps and lets collaborate on this project..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #170 (permalink)  
Old 01-29-2007, 07:33 PM
niva's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 101
niva is on a distinguished road
collect your own data

This is an indicator helped me to study diffTime which is how long to take next qoute to arrive. diffTime which I believe is vary among data providers.

input title stands for the file name of your data set, buffer is for the size of each file.
Attached Files
File Type: ex4 realData.ex4 (2.4 KB, 44 views)
__________________
Forex TSD is NO. 1
EA's blog: http://eaconfigs.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
back testing, backtesting, bug, data, EURUSD1.hst, expert, forex, forex optimization, metatrader optimization, mistake;ea;test, MT4 optimization, optimization, ROBOT, strategy tester, test


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phoenix optimization Prankie Phoenix 173 10-17-2007 08:24 AM
Optimization cpu usage, need help Big Joe Indicators - Metatrader 4 4 08-16-2007 11:46 PM
Martingale Optimization pelele79 Expert Advisors - Metatrader 4 19 05-07-2007 11:27 AM
How do I use the optimization? huhenyo Metatrader 4 1 03-15-2007 10:39 AM
Optimization cardio Metatrader 4 1 01-25-2006 01:30 PM


All times are GMT. The time now is 02:39 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.