Download MetaTrader 5

Cannot find any info about this group

To add comments, please log in or register
Marcelo Coutinho
1206
Marcelo Coutinho  

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
33629
Alain Verleyen  

?

What'is your question ?

Marcelo Coutinho
1206
Marcelo Coutinho  
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
33629
Alain Verleyen  
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
1206
Marcelo Coutinho  
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