| / | Forum |
|
VictorE
2008.04.01 14:52
Hello I'm trying to help a friend with MetaTrader, getting him started and so on. But, when we're trying to run the example EAs (and some of my EAs) through the strategytester we're getting error 131, wrong lotsize? How could this be fixed? Since it works on my computer it should work on his given that we have the same conditions - so far he's trying with a demo account with $10k on it. Should work with the standard Lots=0.1? Any suggestions welcome. |
|
Unfortunately, the list of symbols will be reduced from 23 to 12 on technical grounds. Now, this list is absolutely the same as that of the Automated Trading Championship 2006. |
5089 |
stringo
2008.04.01 15:09
double Lots=MarketInfo(Symbol(),MODE_MINLOT);
|
|
VictorE
2008.04.01 23:49
Doesn't work :/. But thanks for trying to help, could have worked!
(still error 131) |
5089 |
stringo
2008.04.02 10:45
What the value of lots do You try to use? May be some formula?
|
|
ukt
2008.04.02 13:34
why not just show code... then massively easier to see what's going on, yes?
|
|
VictorE
2008.04.02 20:45
Ukt & Stringo: As I said in the first post. All we're trying to do is to get the sample code to work. The samples are namned "MACD Sample" and something more which I can't recall right now. Check in you EA:s list surely they must be there unless you've deleted them.
|
|
ukt
2008.04.03 11:22
Yes - but what "example EAs"..., that's why I asked - better to be 100% sure, yes? took some digging but maybe these are two you mean? 1. Moving Average.mq4 2. MACD Sample.mq4 I ran two tester passes with two Model Types Code is not bullet proof as seen below - is only SAMPLE...
(1/2) I did nothing except get above into ...\experts --> open with editor --> F5/compile --> F4/terminal --> ctrl.R/tester --> select "MACD Sample" --> setup DateRange --> "start" Below shows StrategyTester > Journal tab contents. PairUnderTest/GBPUSD; TimeFrame/M30; Model/Open Prices Only; DateRange/2008.03.25 --> 2008.03.28 2008.04.03 08:16:48 2008.03.27 23:59 Tester: order #1 is closed (2/2) PairUnderTest/GBPUSD; TimeFrame/M30; Model/EveryTick; DateRange/2008.03.25 --> 2008.03.28 (note that much more in Journal Tab - also notice OrderModify() errors... this is homework...:) 2008.04.03 08:17:43 2008.03.26 16:36 MACD Sample GBPUSD,M30: BUY order opened : 2.0004 |