Check your data first. Make sure it comes from the same source.
Sounds like the data from various time periods are conflicting.
For example, if the High for M30 happens to be higher than the High for that day etc etc.
CB
I thought the strategy tester loaded it automatically?
Can I reset the data?
Also, it seems the sleep function is not working well.
Tools|History Center is where you want to look.
If you are online, then the history center will get populated from your broker feed.
However, many prefer (for obvious reasons) to import data from a trusted source and leave the strategy tester offline (for consistent testing).
You could write a book about the number of operational, data, spread etc etc etc variables which one needs to take into account in order to understand the context of a particular test run (some of these variables varying when you don't want them to, others when they downright shouldn't and yet others not varying when you'd like them to).
Can of worms. Horrible slimy worms, at that. Not your honest upstanding earthworm.
CB
Ok - sorted now, had to select Period M5
The sleep function doesn't seem to be working here, it is entering mutiple trades at the same time.
...and a lot of OrderSend 130 errors.
Just selecting M5 is not clearing up the fact that there is still unmatched data in the history center. You're just turning away from it.
Sleep() is ignored by strategy tester.
Error 130 (invalid stops) much documented on this forum.
CB
.....
sleep is ignored? ANy other suggestions on how to test this then? Would I have to add some sort of time flag?
Do I have to delete everything in the history centre?
I thought it wa sinvalid stops but the stop is 15pips away so can't be that. More likely it's the entry point...or not?
sleep is ignored? ANy other suggestions on how to test this then? Would I have to add some sort of time flag?
Do I have to delete everything in the history centre?
I thought it wa sinvalid stops but the stop is 15pips away so can't be that. More likely it's the entry point...or not?
Here you'll find info about what is ignored in the tester. Amongst other things. There are other posts in the forum on ways to get around limitations such as this. You just need to search.
'Testing Features and Limits in MetaTrader 4'
What you need to do regarding the history center depends upon how you need to use it. You could for example:
- Import all data from a reputable source (plenty on this here and in other forums)
- Import M1 data from a reputable source and use the period_converter script (included with the platform) to manufacture the longer time periods
Up to you. Have a look through the plentiful information on strategy tester on this site.
Its a stops problem. Period. Could be you're too close. Check MarketInfo(Symbol(),MODE_STOPLEVEL). If this returns zero, then you need to create the order without stops and subsequently modify. If it returns a value, then you need to be that number of pips away (in the correct direction) from your entry price. You should also check that you have normalized your stops to the correct number of decimal places. Lastly - just to reiterate that stops values when used as parameters in the trading functions are absolute prices - not relative numbers of pips. Sorry, but I've seen folks try all sorts. :-)
CB
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am getting a lot of errors in the report and no trades entered
2009.09.04 12:46:25 TestGenerator: unmatched data error (volume limit 1528 at 2009.08.17 01:00 exceeded)
Any ideas what's wrong?