Detect strategy tester

Back to topics list To post a new topic, please log in or register
avatar
127
wemersonrv 2015.07.31 03:29
 

Hi all..

 

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

avatar
13001
WHRoeder 2015.07.31 03: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;
}

avatar
127
wemersonrv 2015.07.31 18:37 #
 
WHRoeder:

Thanks my friend. Great tip!
Back to topics list  

To add comments, please log in or register