BRAND NEW MAJOR FILE WRITING ERROR

 

hello,

Attached is the file containing the following errors:


';' - unexpected token Reader Delay.mq4 48 62
'handle100' - constant expression required Reader Delay.mq4 48 7
'{' - some operator expected Reader Delay.mq4 47 7
expression has no effect Reader Delay.mq4 46 47
expression has no effect Reader Delay.mq4 49 17
'handle1100' - unexpected token Reader Delay.mq4 68 12
';' - unexpected token Reader Delay.mq4 68 22
';' - unexpected token Reader Delay.mq4 68 22
'{' - some operator expected Reader Delay.mq4 68 7
expression has no effect Reader Delay.mq4 67 50
'=' - unexpected token Reader Delay.mq4 69 17

'handle1100' - undeclared identifier Reader Delay.mq4 70 17

 

FileOpen command is behaving extremely inconsistently. Two identical cases of it in this file are treated completely different with one correct and the other creating errors.

The file is called Reader Delay and is very small with 85 lines of code.

I think this is a major issue and I have seen it on multiple computers, and its clearly an update mistake due to the number of machines I have tested it on.

 

Thanks a lot, 

 


Files:
 

Mom_markets:


The file is called Reader Delay and is very small with 85 lines of code.

I think this is a major issue and I have seen it on multiple computers, and its clearly an update mistake due to the number of machines I have tested it on.

 

Thanks a lot, 


How can you have tested that on even one machine it has so many coding errors it wont even compile.
 
SDC:

How can you have tested that on even one machine it has so many coding errors it wont even compile.


They made a mistake with the last update and FileOpen now compiles with errors. 

 

Mom_markets:

';' - unexpected token Reader Delay.mq4 48 62 

FileOpen command is behaving extremely inconsistently.

I think this is a major issue and I have seen

  1. Don't double post
  2. Fix your compile errors, starting with:
          (GlobalVariableGet("000Reader tick top")==0)    
          {
          handle100=FileOpen("file", FILE_CSV | FILE_COMMON);
    :
          (GlobalVariableGet("000Reader tick bottom")==0)    
          {int handle1100;
          handle1100=FileOpen("close", FILE_CSV|FILE_WRITE|FILE_COMMON , ';');
    
  3. Until you fix your compile errors, you are NOT running that code.
  4. The problem is in your code. If it was mt4, then you would not be the only one reporting it. Always assume it is in your code until you can absolutely prove otherwise with a simple test script. Your code doesn't even compile.
 

There is no "if" placed before the brackets.

 OH ME, OH MY!

 time to go to the doctor.

 

thanks for helping!

Reason: