Download MetaTrader 5
To add comments, please log in or register
Move from theory to practice. Code Base will help you!
Marcelo Coutinho
1104
Marcelo Coutinho 2014.05.23 18:01 

Hi there !

Can someone please give me a clue ?

Nither F1 nor Alt+G goes anywhere!

Regards

MRC

bool Testing()
  {
   return(MQL5InfoInteger(MQL5_TESTING));
  }
//+------------------------------------------------------------------+ 
//| RETURNING THE FLAG FOR OPTIMIZATION                              |
//+------------------------------------------------------------------+ 
bool Optimization()
  {
   return(MQL5InfoInteger(MQL5_OPTIMIZATION));
  }
//+------------------------------------------------------------------+ 
//| RETURNING THE FLAG FOR VISUAL TESTING MODE                       |
//+------------------------------------------------------------------+ 
bool VisualMode()
  {
   return(MQL5InfoInteger(MQL5_VISUAL_MODE));
  }
//+------------------------------------------------------------------+ 
//| RETURNING THE FLAG FOR THE REAL TIME MODE OUTSIDE OF THE TEST    |
//+------------------------------------------------------------------+ 
bool NotTest()
  {
   if(!Testing() && !Optimization() && !VisualMode()) { return(true); } else { return(false); }
  }
//+------------------------------------------------------------------+ 
Alain Verleyen
Moderator
28627
Alain Verleyen 2014.05.23 18:59  

?

What'is your question ?

Marcelo Coutinho
1104
Marcelo Coutinho 2014.05.23 19:24  
angevoyageur:

?

What'is your question ?

What does it do ? What does ii tests ? What does it returns ?

(*) The same for the other 2 options

MQL5InfoInteger(MQL5_VISUAL_MODE));
Alain Verleyen
Moderator
28627
Alain Verleyen 2014.05.23 19:54  
YouTrade:

What does it do ? What does ii tests ? What does it returns ?

(*) The same for the other 2 options

It checks if the code is running within the Strategy Tester, in Visual mode or not, and eventually for an Optimization.

You can't find information as the current function name is MQLInfoInteger.

Marcelo Coutinho
1104
Marcelo Coutinho 2014.05.23 20:37  
angevoyageur:

It checks if the code is running within the Strategy Tester, in Visual mode or not, and eventually for an Optimization.

You can't find information as the current function name is MQLInfoInteger.

Thank you
/
To add comments, please log in or register