MetaTrader 5 Strategy Tester! - page 5

 
codeidea:
no one answer?

No one setting for this.

Just use H1,H4 and D1 together in your EA. Tester creates appropriate history automatically.

 

Hi

To Stringo or Rosh


MetaTrader 5 still does not contain any equivalent of the MetaTrader 4 <History Center>.

How do we modify (or import) data for offline tests ?

For offline tests I wana test diferent data (and mql4 has this).

Is it saved for a future release?

If yes when?

TaoMaster

 

I found this:

http://metatrader5.blogspot.com/2009/10/history-in-metatrader-5.html:


"According to MetaQuotes, the option to edit history and view history like in MT4 will be added later."

But no more details.

 

Hello ,

 1- I want to know is there anyway to make a visual test for my EA ? like the visual mode in MetaTrader 4 ??? and

2 - when you will release the final version of the Strategy Tester ??

3-  and which server should i relay on testing my EA for the champion??

Thank you. 

 
I think visual mode is so important to test various strategy and compare them, without visual mode one move like a blind man
 

I already wrote a thread about it, but want to make sure it is noted by the MT5 team.

Spread in tester is 0 and it makes test results useless. Does anyone know if there is a workaround here? When manual setting of spread will be implemented?

 
baq:

I already wrote a thread about it, but want to make sure it is noted by the MT5 team.

Spread in tester is 0 and it makes test results useless. Does anyone know if there is a workaround here? When manual setting of spread will be implemented?

I find there are gaps in the History data where spread = 0 and Ask-Bid=0. This may indicates gaps where no history data exist. I have found these gaps in May and July for year 2010 on all symbols I have tested.

Print("Server Time ",TimeToString(TimeCurrent(),TIME_DATE|TIME_MINUTES)," ",_Symbol," Spread ",SymbolInfoInteger(_Symbol,SYMBOL_SPREAD)," Ask-Bid ",DoubleToString((SymbolInfoDouble(_Symbol,SYMBOL_ASK)-SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits) );

2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 23:00 GBPJPY Spread 93 Ask-Bid 0.093
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 22:00 GBPJPY Spread 80 Ask-Bid 0.080
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 21:00 GBPJPY Spread 80 Ask-Bid 0.080
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 20:00 GBPJPY Spread 87 Ask-Bid 0.087
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 19:00 GBPJPY Spread 66 Ask-Bid 0.066
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 18:00 GBPJPY Spread 62 Ask-Bid 0.062
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 17:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 16:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 15:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 14:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 13:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 12:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 11:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 10:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 09:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 08:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 07:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 06:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 05:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 04:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 03:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 02:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 01:00 GBPJPY Spread 0 Ask-Bid 0.000
2010.07.19 12:20:51 Core 1 Server Time 2010.07.14 00:00 GBPJPY Spread 48 Ask-Bid 0.048
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 23:01 GBPJPY Spread 255 Ask-Bid 0.255
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 22:00 GBPJPY Spread 36 Ask-Bid 0.036
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 21:00 GBPJPY Spread 37 Ask-Bid 0.037
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 20:00 GBPJPY Spread 22 Ask-Bid 0.022
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 19:00 GBPJPY Spread 33 Ask-Bid 0.033
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 18:00 GBPJPY Spread 29 Ask-Bid 0.029
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 17:00 GBPJPY Spread 33 Ask-Bid 0.033
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 16:00 GBPJPY Spread 33 Ask-Bid 0.033
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 15:00 GBPJPY Spread 34 Ask-Bid 0.034
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 14:00 GBPJPY Spread 21 Ask-Bid 0.021
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 13:00 GBPJPY Spread 30 Ask-Bid 0.030
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 12:00 GBPJPY Spread 34 Ask-Bid 0.034
2010.07.19 12:20:51 Core 1 Server Time 2010.07.13 11:00 GBPJPY Spread 40 Ask-Bid 0.040

 

Thanks for joining the topic Wackena.

You are testing it in a different way, I made a little script here to compare the two:

//+------------------------------------------------------------------+
//|                                                     mt5_test.mq5 |
//+------------------------------------------------------------------+


double spread_0_v1=0;
double spread_plus_v1=0;

double spread_0_v2=0;
double spread_plus_v2=0;

int OnInit()
{
   return(0);   
}
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   Print("Spread1  0:   "+spread_0_v1);
   Print("Spread1 >0:   "+spread_plus_v1);
   Print("Spread2  0:   "+spread_0_v2);
   Print("Spread2 >0:   "+spread_plus_v2);
}
//+------------------------------------------------------------------+
void OnTick()
{  
   MqlRates rates[];
   ArraySetAsSeries(rates,true);   
   CopyRates(_Symbol,_Period,0,2,rates);
     
   if(rates[0].tick_volume == 1)
   {
      if(rates[0].spread > 0)
         spread_plus_v1++;
      else
         spread_0_v1++;
         
         
      if(SymbolInfoDouble(_Symbol,SYMBOL_ASK)-SymbolInfoDouble(_Symbol,SYMBOL_BID)>0)
         spread_plus_v2++;
      else
         spread_0_v2++;   
   }
}

Now after running it on the GU H1 last year 1 minute OHLC I get:

2010.07.20 17:36:10    Core 1    Spread2 >0:   3258.00000000
2010.07.20 17:36:10    Core 1    Spread2  0:   78.00000000
2010.07.20 17:36:10    Core 1    Spread1 >0:   0.00000000
2010.07.20 17:36:10    Core 1    Spread1  0:   3336.00000000

Now question is what rates are used by EA and why are these different ?



 

Ok At last I found the right forum to ask my question!! :)

I'm sure there is a way to do this because there are no posts in the forums up to this one so far and I'm SOOO sure everyone is doing this  and I'm just stupid...

How can I debug using the data from the strategy tester. Here I'm sitting on my patio on a weekend when the market is closed and I need to test my EA. NOTE I don't want to see

how my EA performs or trade....I want to DEBUG.

 
It is not possible to debug in the Strategy Tester now. We are going to do this feature.
Reason: