Script to check connection need to be corrected ?

 

Hello,

I try to publish a little script to codebase but it was rejected with this message :

Unfortunately, some of your codes "Check connection (IsConnected)" need to be corrected.

They are returned to you by moderator for correction.

My problem is that I didn't found any error. It works very well for me on several platforms. Could someone give it a try ?

This is a little script I make after reading of this discussion, to check automaticaly Terminal connection to broker server.

  1. Place the script CheckConnection.mq4 to <terminal>\experts\scripts
  2. Place start.ini in <terminal>\config directory.
  3. Start your terminal by terminal.exe config\start.ini (or modify your shortcut to allways start with the script.

Thank you by advance.

Files:
 
  1. int start(){
       static int  start;
    
    Not good style
  2. Don't put tabs in the source
  3. match indenting properly
  4. I didn't see any problems. I updated the file, and attached.
Files:
 
WHRoeder:

I didn't see any problems. I updated the file, and attached.

Thank you for your time.

That confirm my view. Can I ask to a moderator why this code is refused in codebase ?

 
angevoyageur:

Thank you for your time.

That confirm my view. Can I ask to a moderator why this code is refused in codebase ?

You can ask but Moderators don't have anything to do with submissions to the Codebase,  that is handled by Metaquotes directly.
 
RaptorUK:
You can ask but Moderators don't have anything to do with submissions to the Codebase,  that is handled by Metaquotes directly.

Ok thank you, not so important anyway.
Reason: