Download MetaTrader 5

MT4 Build 600 "Declaration without type" error

To add comments, please log in or register
Petko Enchev
59
Petko Enchev  


fter I upgraded to the new build 600 my custom indicator stopped working! I am using Twiggs MOney Flow ORG, but when I try to compile it in the metaeditor it is giving me the following errors. Somebody told me that this is a bug in the new build 600 and I must put an init function but I don't know how to do it, anyone can help?

whroeder1
17050
whroeder1  

5ko: fter I upgraded to the new build 600

it is giving me the following errors.

Somebody told me that this is a bug in the new build 600

and I must put an init function but I don't know how to do it, anyone can help?

  1. Build 600 is irrelevant.
  2. You can NEVER put function calls on the global scope.
  3. Has nothing to do with build 600.
  4. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
#property ...



SetLEvelValue(...);
#property ...

int OnInit(){

   SetLEvelValue(...);

   return(INIT_SUCCEEDED);
}
Petko Enchev
59
Petko Enchev  
WHRoeder:
  1. Build 600 is irrelevant.
  2. You can NEVER put function calls on the global scope.
  3. Has nothing to do with build 600.
  4. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.


Thank you very much! I made it work. Anyway, I think that the problem is in the build 600 - I've never had any problems with this indicator in the previous versions, the problem occured when I reinstalled my MT4 a few days ago, before that it was working just fine for years.


Thank you again.

Syed Naufal Gaddafi
1404
Syed Naufal Gaddafi  
 Anyway, I think that the problem is in the build 600
If you say something like that, means that you have been under the hood and failed in noticing of what had happened actually. Basically, there are some homeworks you may need to do.
shermilden5000
87
shermilden5000  
Anyway, I think that the problem is in the build 600
SYED NAUFAL GADDAFI:
If you say something like that, means that you have been under the hood and failed in noticing of what had happened actually. Basically, there are some homeworks you may need to do.
whroeder1:
  1. Build 600 is irrelevant.
  2. You can NEVER put function calls on the global scope.
  3. Has nothing to do with build 600.
  4. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.

I also had the same issue, but, once whroeder1 said the above text in red, I knew what to do, apparently, the OP didn't get the true solution for his/her issue. Guys, you need to put that "comment" function inside something such as

int start()
{
 
 Comment(StringFormat ...

}
To add comments, please log in or register