Here is another way you could use the results from two different periods of optimization:

A good manual trader can look at a chart and know right away if the pair in question seems to be behaving in a normal or abnormal way. If this trader opens his MT4 in the morning and sees patterns that look strange (unusual volatility / lack of volatility / spikes etc) he will go to check out the current business news, the stock indices, the upcoming announcements etc to see what is the deal, and at that point he may either decide not to trade for the present time, or to use a different system to the one he would usually trade.

It is not reasonable to expect a program to do that. However, your program could do something like this: Take the parameters generated by a long-term optimization and compare them with those generated by a short-term one. Then if the short-term results were within a user-defined distance from the baseline long-term results, the bot would be allowed to trade, if outside then it would not be allowed to trade at that time. If it was allowed to trade, then if would use the parameters generated by the long-term optimization to place the trades.

So a user could have the EA establish the long-term parameters for a particular pair over 1.5 million bars (5+ years), but have it continually compare the parameters generated from an optimization of the last 10 days (2 trading weeks). The user could then, for example, allow the bot to trade if the results from the last 10 trading days were within + /- 10% of the results from the 1.5 million bar long-term baseline. (In other words, the bot would be able to say whether the pair had recently been trading within the "normal" range of parameters for this pair or not. Of course, if would not be able to see the upcoming NFP / tsumani / black swan, but it would at least be able to say, "The XXXYYY pair is currently trading in a typical way, so I should be able to use my long-term optimized parameters safely at the moment.")

Recycle if this is not useful.

Cheers

Invisible
After trading commenced the EA waited x amount of bars before setting HiLos. However it did not take into account market movement during those bars to calculate HiLos. On pairs showing a downward trend, the hi is not as hi as it should be. This may be due to the way StrToTime is calculated.
What is the general practice for end of week? Let the EA run through the close with positions open or shut it down and close out everything beforehand?

Im having a blast messing around with this
After trading commenced the EA waited x amount of bars before setting HiLos. However it did not take into account market movement during those bars to calculate HiLos. On pairs showing a downward trend, the hi is not as hi as it should be. This may be due to the way StrToTime is calculated.
Could you elaborate?

What is the general practice for end of week? Let the EA run through the close with positions open or shut it down and close out everything beforehand?

Im having a blast messing around with this
The EA optimizer includes weekend gaps as well, I quite literally set it and mostly forget it.
Could you elaborate?
I didn't have this problem with the old version. So looking at the HiLo calculation code I see they they have roughly the same logic written differently. If RangeStart = DayStart - InitialRange and HiLos are calculated from RangeStart then it seems to me that if InitialRange = x the EA should be looking x bars beyond DayStart and then also waiting x bars after to place a trade. Giving you 2x bars to calculate HiLo. However this pic shows the EA waited x bars after the market opened to begin calculating HiLos and began trading at the same time. That negates the point of using InitialRange, and runs the risk of a breakout trade being placed when it should not be.

Since the formula looks correct to me, I looked at the differences between the two EAs. Primarily the DayStart calculation. In the old version you used Period_D1 to calculate both DayStart and HiLo. So even on a Sunday, no matter what time zone you are in, when the market opens it is a new day. The new version uses StrToTime("00:00") to calculate DayStart. StrToTime Calculates local pc time rather then server or GMT time. Since it is not midnight here, that line of code may be causing the bug. Just a theory, because I did not have this issue last week at midnight. It worked as it should.
Attached Image (click to enlarge)
Click to Enlarge

Name: Purple Monkey Vomit.jpg
Size: 71 KB
Well, after trying and trying, it seems your limited to < 10,000 records for M1 and @ 2077 for M5 on any pair.

I tried downloading through a 5 decimal IBFX demo and migrating the data....NO

I tried downloading the data via demo and then logging in to my live account....NO; it just reverts back.

If anyone else is using IBFX and knows how to increase the records in the History Center, let me know.

I already have the Bars on chart and in history and all that set to the maximum.
Capital Preservation is key to long term wealth accumulation
EDIT2: Or.. I could just be a retard who forgot to modify the code to change reject to accept.... lol
Well, after trying and trying, it seems your limited to < 10,000 records for M1 and @ 2077 for M5 on any pair.

I tried downloading through a 5 decimal IBFX demo and migrating the data....NO

I tried downloading the data via demo and then logging in to my live account....NO; it just reverts back.

If anyone else is using IBFX and knows how to increase the records in the History Center, let me know.

I already have the Bars on chart and in history and all that set to the maximum.
OK, being that I'm using IBFX as well here are some "problems" I've run into.

First, being that I am using Windows 7, windows likes to "lock" programs out from editing files in their default installation directory of "Crogram FilesInterbank FX". This "Could" be preventing MT4 from being able to save the downloaded data. The solution I have found is simply to uninstall and then reinstall into a different "unprotected" directory, IE: C:MT4 Trader. Why windows treats programs installed in a "Program Files" subfolder differently then if you installed them somewhere else I'll never know, but it does and has solved a LOT of my issues with applications and games not saving their data properly.

Second, IBFX doesn't provide historical data, if you pay close attention to the message that pops up when you click download in the history center, its telling you it will download the data from "Metaquotes Software Corp" and not IBFX. This could be why your having issues importing/exporting the data. (also MT4 seems to store different history data with different profiles, so when you log out of the "demo" profile its data is no available to the "live" profile. You will need to log on demo, export, log on live, import.. though you mention you already tried that)

Third, I seem to be limited to 65655 records on my IBFX account even though I set the max bars to 250k and the history to 512k. No idea how to get around this as I have tried manually typing in numbers and saving the setting, but no matter what I put in there it "caps" out at 65655. Limitation of IBFX servers possibly?
Well, after trying and trying, it seems your limited to < 10,000 records for M1 and @ 2077 for M5 on any pair.

I tried downloading through a 5 decimal IBFX demo and migrating the data....NO

I tried downloading the data via demo and then logging in to my live account....NO; it just reverts back.

If anyone else is using IBFX and knows how to increase the records in the History Center, let me know.

I already have the Bars on chart and in history and all that set to the maximum.
To download more bars: http://www.easyexpertforex.com/backt...imization.html

Use this source: http://www.forextester.com/data/datasources.html

I didn't have this problem with the old version....
I think you're right. It's mentioned here: (http://forum.mql4.com/33023). I wonder how I didn't have any trouble with this... If anyone is good with timezone math, I'm in the New York timezone (Eastern).
I'm in Seattle so you are a few hours ahead of me. I think this bug only happens on Sunday open. So it could be easy to overlook if your not paying attention. But that also means that everyone using this EA has different HiLos depending on their timezone.
OK, so after reading and re-reading how to get this EA working, I "believe" I have everything set up correctly. So after dropping it on a chart I've been waiting now for several hours for it to finish optimizing, but nothing has changed since I started it except the cycle count. This is what the EA is showing me.

Attached Image


All settings are default except for lots, I changed it from 0.1 to 0.01.

So should I keep waiting? Reset and try again?