Download MetaTrader 5
To add comments, please log in or register
Do you need private account monitoring? The Signals will provide you one!
Wemerson Guimaraes
535
Wemerson Guimaraes 2015.07.31 01:29 

Hi all..

 

There are a way to detect if it's running normally or in Strategy Tester

whroeder1
13602
whroeder1 2015.07.31 01:48  
enum Terminal_Mode{  MODE_LIVE, MODE_VISUAL, MODE_OPTIMIZER};
Terminal_Mode  get_modus_operandi(void){
   if(!IsTesting() )          return MODE_LIVE;
   if( IsVisualMode() )       return MODE_VISUAL;
                              return MODE_OPTIMIZER;
}
Wemerson Guimaraes
535
Wemerson Guimaraes 2015.07.31 16:37  
WHRoeder:

Thanks my friend. Great tip!
/
To add comments, please log in or register