Hello
I run a optmization test on Friday (2014-02-14) and recorded results.
I then ran the same optimization test today and recorded results and they were different???
Why??
- The settings are exactly the same, and by the way - I save/load them from a .set file.
- The from and to dates are the same and they do not include today's date
- Spread, Period, EA params... everything is the same, I did not touch anything since Friday!
... and yet the results differ... not by much... but still!
This is supposed to be a BLACK BOX - you feed it THE SAME DATA and it should give you back the SAME RESULT!!!
Thank you RaptorUK,
...what I understand from that thread is that generally it is "a very good idea" to disconnect from the broker when running a back-test in the tester?
In particular you ABSOLUTELY MUST disconnect from the server when:
- your test pair is not XXX/AccountCurrency; or
- Spread is set to "Current"; or
- your model is "Every Tick" and your EA is opening trades on a per-tick basis (ie. mid-candle)
However this is not the case with my EA and my test:
1. I am testing with EURUSD and AccountCurrency is USD
2. Spread is 5
3. Model is Control points, Period is Daily and trades are only opened at mid-night, when new daily candle was just formed
Also, my "FROM - TO" period does not include today's date ... so that's one more thing where connection to the broker could screw things up... but not in my case.
Based on the above - is there any reason why the tests between Friday and today would be different?
And did I miss anything in my summary of that thread's info?
would pasting the contents of the tester/lasttest.chr file in here help?
I can save it, then run the same test tomorrow and if the results differ again - compare the two chr files to see if there's any differences in there...
Thank you RaptorUK,
...what I understand from that thread is that generally it is "a very good idea" to disconnect from the broker when running a back-test in the tester?
In particular you ABSOLUTELY MUST disconnect from the server when:
- your test pair is not XXX/AccountCurrency; or
- Spread is set to "Current"; or
- your model is "Every Tick" and your EA is opening trades on a per-tick basis (ie. mid-candle)
However this is not the case with my EA and my test:
1. I am testing with EURUSD and AccountCurrency is USD
2. Spread is 5
3. Model is Control points, Period is Daily and trades are only opened at mid-night, when new daily candle was just formed
Also, my "FROM - TO" period does not include today's date ... so that's one more thing where connection to the broker could screw things up... but not in my case.
Based on the above - is there any reason why the tests between Friday and today would be different?
And did I miss anything in my summary of that thread's info?
If you disconnect from the Broker for all runs there can be no possibility for data to change, including history and symbol data . . . even if your test doesnt include today . . . incidentally it cannot, your Broker can still "update" other history for past days . . .
The thing about using an XXXYYY symbol where YYY is your Account currency is that in this situation the tickvalue is a constant, otherwise it changes tick by tick, if you then use tickvalue in your position size calculations you have another variable.
hmmm... it must be the swap.... becasue I compared dumps from both test runs... and I can see that open and close prices are exactly the same in Friday's test and today's test and yet the profit for each trade is just a tiny bit different. So the only thing that's left is the Swap (since Lots are also the same of course...).
It probably uses live SWAP rates in the tester.... just like many other things in the tester which come from the current live data...
would pasting the contents of the tester/lasttest.chr file in here help?
I can save it, then run the same test tomorrow and if the results differ again - compare the two chr files to see if there's any differences in there...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I run a optmization test on Friday (2014-02-14) and recorded results.
I then ran the same optimization test today and recorded results and they were different???
Why??
... and yet the results differ... not by much... but still!
This is supposed to be a BLACK BOX - you feed it THE SAME DATA and it should give you back the SAME RESULT!!!
Here's the data from Friday (copied into a spread sheet):
... and this is what the results looks like today: