how to stop testor write log ?

 

when test an ea ,a very large log was written ,so the testor become very slowly ,it always write the same useless

message like XXXX load sussesfuly ,XXXX removed ,

the memory is full ,and cannot load the history data .

 
You might try going to mt4platformroot/log and delete unwanted log files.
 
YALEWANG:

when test an ea ,a very large log was written ,so the testor become very slowly ,it always write the same useless

message like XXXX load sussesfuly ,XXXX removed ,

the memory is full ,and cannot load the history data .

2 lines in the log each time you load or unload an EA/Indicator or script is not causing you an issue.
 
but my testor writte one time every tick ,every time is the same " XXXX load sussesfuly ,XXXX removed "  ,the log file is large than 1G .
 
YALEWANG: but my testor writte one time every tick 

So don't do that.

  1. comment out the prints
  2. disable the prints
    int init(){
       :
       #define CS_LIVE      0
       #define CS_VISUAL    1
       #define CS_OPTIMIZER 2
             if(!IsTesting())     chart.status   = CS_LIVE;
       else  if(IsVisualMode())   chart.status   = CS_VISUAL;
       else{                      chart.status   = CS_OPTIMIZER;
                                  Show.Comments  = false;
                                  Show.Objects   = false;
                                  Debug.Enabled  = false; 
      }
    

 

sorry, i cannot pass the compile in mt4 editor ,chart object not defined .

in my code no print , comment ,and object functions ,only use customindicators .

when test GBPUSD EURUSD pairs ,the testor load and remove all the customindicator one time every tick ,

but not do so on USDCHF pair , it is very strange  .