Download MetaTrader 5

If visualization is not checked in strategy tester - no trading at all.

To add comments, please log in or register
Create Forum topics and improve your rating!
Anton Nel
36965
Anton Nel 2013.07.07 16:14 

Hi everyone, 

If visualization is not checked in strategy tester - there is no trading (EA). If checked then it is working fine. This makes me scratch my head.

Any ideas? 

Alain Verleyen
Moderator
30711
Alain Verleyen 2013.07.07 17:10  
ROMAN5:

Hi everyone, 

If visualization is not checked in strategy tester - there is no trading (EA). If checked then it is working fine. This makes me scratch my head.

Any ideas? 

Weird. Which settings ? which EA, build ?
Anton Nel
36965
Anton Nel 2013.07.07 17:27  
angevoyageur:
Weird. Which settings ? which EA, build ?
I built my own Time Breakout EA. If you download (demo) -- you will see.
Alain Verleyen
Moderator
30711
Alain Verleyen 2013.07.07 17:43  
ROMAN5:
I built my own Time Breakout EA. If you download (demo) -- you will see.
Are you using objects to check your trading signal ?
Anton Nel
36965
Anton Nel 2013.07.07 17:56  
angevoyageur:
Are you using objects to check your trading signal ?

No, I am using:

high = iHigh(Symbol(),NULL, i);
low = iLow(Symbol(),NULL, i);
//+------------------------------------------------------------------+
//| Get Low for specified bar index                                  |
//+------------------------------------------------------------------+
double iLow(string symbol,ENUM_TIMEFRAMES timeframe,int index)
{
   double low=0;
   ArraySetAsSeries(Low,true);
   int copied=CopyLow(symbol,timeframe,0,Bars(symbol,timeframe),Low);
   if(copied>0 && index<copied) low=Low[index];
   return(low);
}
//+------------------------------------------------------------------+
//| Get the High for specified bar index                             |
//+------------------------------------------------------------------+
double iHigh(string symbol,ENUM_TIMEFRAMES timeframe,int index)
{
   double high=0;
   ArraySetAsSeries(High,true);
   int copied=CopyHigh(symbol,timeframe,0,Bars(symbol,timeframe),High);
   if(copied>0 && index<copied) high=High[index];
   return(high);
}
Alain Verleyen
Moderator
30711
Alain Verleyen 2013.07.07 18:08  
ROMAN5:

No, I am using:

Are you sure ? it seems to me there are objects on the chart, not ? I'm not absolutely certain that it is connected, but in your place I will check my code in this direction.
To add comments, please log in or register