| / | Forum |
|
Craig
2006.09.28 00:54
How does the backtester get/use the spread in backtesting?
The reason I ask this question is that I get different backtest results depending on when I run the backtest (same data, same computer, same server etc). I can only assume the 'live' spread is been used, hence the variation in results. |
|
Translation of Quotes on Holidays Temporary stop of the translation of quotes due to holidays. |
|
rfiche
2006.09.28 05:29
Craig,
At "Strategy Tester" section (press F6 key), click on "Symbol properties" button to see the spread used by the tester. |
|
Craig
2006.09.28 05:55
Thanks for the reply, where do these settings come from? or are they just hardcoded?
|
|
richplank
2006.09.28 06:44
Craig wrote: Thanks for the reply, where do these settings come from? or are they just hardcoded? I wouldn't know for sure, but from stringo's article 'Testing of Expert Advisors in the MetaTrader 4 Client Terminal: An Outward Glance', it looks like a "current spread" is obtained from the server when the test cache (the FXT file) is created, and then is re-used on re-run. Running at different times and different computers or re-calcualting the FXT file give ample opportunties to cache different spreads (if it changes). Another question is whether the backtesting also models the "overrunning" behaviour of a real run, i.e. "dropping" ticks for a busy EA. If that's the case, then you would have a new dimension to the possibilities of differences between platforms and runs. |
|
Craig
2006.09.28 10:02
Hmmm, once again, thanks for the answer.
Does anybody get the feeling this could all be much easier? Another question, if I load up M1 data in the history center, what is the difference between using the 'period_convertor' script and letting the backtester recalculate a higher timeframe on every tick? do they not effectivly do the same thing? |
5089 |
stringo
2006.09.28 11:13
|
|
Craig
2006.09.28 11:44
Not sure, does this mean there is no simple answer?
|
5089 |
stringo
2006.09.28 12:28
Spread value is stored in the FXT header as 4-bytes integer with the offset 124
bytes. This is a constant and cannot be changed during the entire testing. You
can change it in the header yourself. But it remains a constant and will be applied
to the entire testing. |
|
Craig
2006.09.28 13:57
Cheers, I'll check it out.
|
|
Craig
2006.09.29 02:44
Um... that clears it up a bit.
As a bit of feedback, I know English is not the first language of the people involved in metaquotes, and I appricate that the effort has been made to translate the text. But some of the articles are nearly unreadable ("My first grail" for example), it's almost as if the text has been run though google translate. |
|
maria
2006.09.29 12:34
Craig wrote: Hello Craig,Um... that clears it up a bit. As a bit of feedback, I know English is not the first language of the people involved in metaquotes, and I appricate that the effort has been made to translate the text. But some of the articles are nearly unreadable ("My first grail" for example), it's almost as if the text has been run though google translate. I translated articles into English. You wrote "some of the articles are nearly unreadable". Does it mean that the others are ok? :) Then it is not the matter of translation, but of the author's vision, isn't it? I would appreciate very much if you could contact me (to discuss these matters) via ICQ (92124862) or msn (Antiqua_2005@hotmail.com). Anyway, thank you very much for your feedback. Best regards |