Download MetaTrader 5

My MT4 folder has above 60GB capacity - question

To add comments, please log in or register
Do you know C++? MQL5 has much in common with it. Just try it yourself!
Piotr
1249
Piotr 2011.09.13 14:37 

My MT4 folder has more than 60GB capacity. I found there many logs in subfolders

C:\Program Files\MT4\logs

and

C:\Program Files\MT4\testes\logs


Many files was grater than 3,4,5,6 GB !


How to disable logs on Meta Trader 4 ?

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2011.09.13 14:51  
puncher:

How to disable logs on Meta Trader 4 ?

I don't think you can . . . but you can control the verbosity of your EA. If you don't need your EA to log any more for debugging purposes then stop it doing so . . .
whroeder1
14514
whroeder1 2011.09.13 15:35  
puncher:

My MT4 folder has more than 60GB capacity. I found there many logs in subfolders

C:\Program Files\MT4\logs

and

C:\Program Files\MT4\testes\logs


Many files was grater than 3,4,5,6 GB !


How to disable logs on Meta Trader 4 ?

  1. Do NOT install in \program files* on Vista/Win 7
  2. MT keeps the last few days worth. You can delete when you like.
  3. Comment out your print statements you are not actually using for debugging.
Pavel Soukup
560
Pavel Soukup 2011.09.13 16:17  

Maybe using MQL order Print("...") in your EA => bigger size file logs! My own experience!!!

BR
430
BR 2011.09.13 16:46  
Are they Error Logs .... I have seen many error logs become HUGE like that.
Piotr
1249
Piotr 2011.09.14 11:36  
RaptorUK:
I don't think you can . . . but you can control the verbosity of your EA. If you don't need your EA to log any more for debugging purposes then stop it doing so . . .

it is very fucking situation, but thank you for the answer
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2011.09.14 11:59  

Not sure what you mean by that last comment . . but I'll take the thank you :-) and explain what I do . . .

I have an extern and some bools . . .

extern int Debug_Level=0 ;             // Set to a value from 0 to 5, 0 = no debugging (default), 5 = max debugging messages

bool D1, D2, D3, D4, D5;   // debug values used like this  if(D2) do . . . 

in init() I do this . . .

   D1=false; D2=false;D3=false;D4=false;D5=false;  // set debug level 
   switch(Debug_Level) {
      case 5: D5=true;
      case 4: D4=true;
      case 3: D3=true;
      case 2: D2=true;
      case 1: D1=true;
      }

then I use this to control which Print statements get executed . . .

if (D4) Print("Slippage = ", Slippage);

If I set Debug_Level=0 then I get no debugging messages and very small log files . . . I still have the option to Print important messages that I want regardless . . . I just don't use the if (Dx)

Piotr
1249
Piotr 2011.09.14 13:38  
RaptorUK:

Not sure what you mean by that last comment . . but I'll take the thank you :-) and explain what I do . . .

I have an extern and some bools . . .

in init() I do this . . .

then I use this to control which Print statements get executed . . .

If I set Debug_Level=0 then I get no debugging messages and very small log files . . . I still have the option to Print important messages that I want regardless . . . I just don't use the if (Dx)


RaptorUK correct me if I wrong. I do not know whether I understood it well:

If I use in program more Print() function then log will be much greater than I will not use this function on my EA. Have I right?

qjol
3243
qjol 2011.09.14 13:43  
puncher:


RaptorUK correct me if I wrong. I do not know whether I understood it well:

If I use in program more Print() function then log will be much greater than I will not use this function on my EA. Have I right?


correct
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2011.09.14 13:57  
puncher:


RaptorUK correct me if I wrong. I do not know whether I understood it well:

If I use in program more Print() function then log will be much greater than I will not use this function on my EA. Have I right?


Correct, but when you are developing and debugging an EA you need the Print functions to help you find errors, typos and bugs . . . when the EA is working you can turn them off . . .

extern int Debug_Level=0 ;  
Piotr
1249
Piotr 2011.09.14 14:03  
RaptorUK:

Correct, but when you are developing and debugging an EA you need the Print functions to help you find errors, typos and bugs . . . when the EA is working you can turn them off . . .


exactly OK thanks
12
To add comments, please log in or register