This forum is now read-only. You can discuss you questions on Forums of MQL4.community and MQL5.community
Build 188 - backtesting issuesBack to topics list |
|
lomme
2006.01.16 01:50
Hi,
in new build 188 I get big differencies in results of Strategy Tester compared to build 186. Is Strategy Tester undergone a major update in this new release? Btw: Is there a place where someone can see a list of fixes for every build version? Thanks. |
|
lomme
2006.01.17 01:09
In between I found out, that there is a big bug in Strategy Tester of build 188:
All limit orders are executed. And they get whatever price you want. Meaning whatever (unrealistic) price you give to OrderSend() will be accepted. Last time I've seen exactly this was in MT3.85. Hope it will be fixed soon. Otherwise Strategy Tester is complete useless for limit orders!! Here's a litte EA for bug demonstration. Look at Journal after running in ST. EA makes 10 limit orders with prices miles away from actual Ask... and get this trades filled!!!
double BuyPriceWanted;
int ticket, cnt;
int init(){return(0);}
int deinit(){return(0);}
int start()
{
if (cnt>9) return;
BuyPriceWanted=NormalizeDouble(Ask-100*Point, Digits);
ticket= OrderSend(Symbol(), OP_BUYSTOP, 1.00, BuyPriceWanted, 3, Ask - 500 *Point, Ask + 500 * Point, "Test Buy1", 4711, 0, Blue);
if (ticket>0)
{
cnt++;
Alert("Ticket: #", ticket, " Bid ", Bid, " Ask: ", Ask, " Buy Price wanted: ", BuyPriceWanted," SL: ", Ask - 500 *Point," TP: ", Ask + 500 * Point);
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)==True)
{
if (OrderOpenPrice()<Ask)
Alert("Ticket: #", ticket, " Buy Price get: ", OrderOpenPrice(), " < Ask !!! ERROR !!!");
}
}
return(0);
}
|
4464 |
Slawa
2006.01.17 11:18
error is here
BuyPriceWanted=NormalizeDouble(Ask-100*Point, Digits); ticket= OrderSend(Symbol(), OP_BUYSTOP, 1.00, BuyPriceWanted, 3, Ask - 500 *Point, Ask + 500 * Point, "Test
BuyPriceWanted=NormalizeDouble(Ask+100*Point, Digits);
|
|
lomme
2006.01.17 11:35
[quote]error is here
BuyPriceWanted=NormalizeDouble(Ask-100*Point, Digits); ticket= OrderSend(Symbol(), OP_BUYSTOP, 1.00, BuyPriceWanted, 3, Ask - 500 *Point, Ask + 500 * Point, "Test
|
|
lomme
2006.01.20 02:27
Does someone of Metaquotes noticed my last reply?
|
4464 |
Slawa
2006.01.20 11:28
"New MetaTrader 4 Client Terminal Build 188"
=== 26. Tester: Fixed error of placing of mistaken SL and TP in pending orders. === Addition: and mistaken open price too. |
|
lomme
2006.01.20 12:42
But like I said:
I got this problem since Build 188. Build 186 had no problems with that. So I guess it's still present, maybe side effects of your latest changes in Tester. |
