Download MetaTrader 5

MetaTrader 4 Client Terminal build 646: New Smart Search, Books in the Market and Updated Window of MQL4 Application Settings - page 14

To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
Halley
198
Halley 2014.05.31 18:49  
onewithzachy:

Nope. both code has the same comparison. See yourself, I colored them to compare.

I doubt that. Check the parentheses.
Ian Venner
2584
Ian Venner 2014.05.31 23:09  
if( TimeDay(TimeCurrent() > TimeDay(expired) && TimeMonth(TimeCurrent()) >= TimeMonth(expired) && 
       TimeYear(TimeCurrent()) >= TimeYear(expired)) )
TimeDay()  function call needs closing parentheses. You have an extra closing parentheses at the end of the condition I think that has put the entire condition is within the TimeDay() function call. I expect TimeDay() will return an error value, probably 1970.
mshaipudin
6
mshaipudin 2014.06.02 08:47  
radu:

Yes, you can delete them when the MT4 terminal is not running.

These files are the log files of your expert / indicator activity. The big file size indicates that you've some faulty, or poorly programmed expert/indicator which has a recurring error or too much logging. These messages are constantly been written to the logfiles when a tick (price change) came in. So if you would like to avoid this, you have to check your indicators/experts one by one and find the faulty one. You could open these files with Notepad for example, or just have a glimpse in the "Experts" tab of the Terminal panel.


Thank you.
whroeder1
14489
whroeder1 2014.06.02 16:21  
SDC: I would rewrite it like this 
if( TimeDay(TimeCurrent() > TimeDay(expired) )
{if( TimeMonth(TimeCurrent() >= TimeMonth(expired) ) 
 {if( TimeYear(TimeCurrent() >= TimeYear(expired) )
  1. Also if TimeDay(expired) == 31, then the test always fails. If expired is February 2014 the test fails for every January. Etc.
  2. I would have written it like this
    #define HR2400 (PERIOD_D1 * 60)  // 86400 = 24 * 3600
    int      TimeOfDay(datetime when=0){      if(when == 0)  when = TimeCurrent();
                                              return( when % HR2400 );            }
    datetime DateOfDay(datetime when=0){      if(when == 0)  when = TimeCurrent();
                                              return( when - TimeOfDay(when) );   }
    datetime Tomorrow( datetime when=0){      if(when == 0)  when = TimeCurrent();
                                              return(DateOfDay(when) + HR2400);   }
    //datetime Yesterday(datetime when=0){      if(when == 0)  when = TimeCurrent();
    //   int iD1 = iBarShift(NULL, PERIOD_D1, DateOfDay(when) - 1);
    //                                       return( iTime(NULL, PERIOD_D1, iD1) ); }
    :
    if( TimeCurrent() >= Tomorrow(expired) 
David
78
David 2014.06.05 14:34  

which is the number maximum number of externs I can have in an expert, without having any crash during optimization?

 

beacuse i just realized the mt4 crashes always, with some hundred of externs, during optimization, even only 2 or 3 are currently being optimized

Rashid Umarov
Admin
11817
Rashid Umarov 2014.06.06 14:15  
didjeridoo:

which is the number maximum number of externs I can have in an expert, without having any crash during optimization?

 

beacuse i just realized the mt4 crashes always, with some hundred of externs, during optimization, even only 2 or 3 are currently being optimized


Can you write a request in Servicedesk? See the article MQL5.community - User Memo => 5. Service Desk
williamwong
632
williamwong 2014.06.09 02:20  

I have subscribed to vps.  It is windows 2008.  I am running mt4 646 portable mode.

When I uploaded my indicators and tried running it, it says cannot open files.  

I have to recompile the indicators in the server before it can be added.

Is this normal?  I would like to just copy ex4 file and it should work instead of duplicating my source codes in the server and recompile to work.

Rashid Umarov
Admin
11817
Rashid Umarov 2014.06.09 08:14  
williamwong:

I have subscribed to vps.  It is windows 2008.  I am running mt4 646 portable mode.

When I uploaded my indicators and tried running it, it says cannot open files.  

I have to recompile the indicators in the server before it can be added.

Is this normal?  I would like to just copy ex4 file and it should work instead of duplicating my source codes in the server and recompile to work.


If you are sure that you do everything correct you should write ticket to Servicedesk please. See the aerticle MQL5.community - User Memo =>
5. Service Desk
1...7891011121314
To add comments, please log in or register