Getting error:0

To add comments, please log in or register
Harsh Mali
14
Harsh Mali  
Hi. I'm testing this ea on demo, but I'm frequently getting the "Error: 0". And when this error shows up, the orders failed to open.
I've been searching for solutions, but still can't figure out.

Any suggestion?

Thanks

How to get open order by this bot?

Files:
Keith Watford
Moderator
24401
Keith Watford  
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
William Roeder
22409
William Roeder  
Harsh Mali: I'm frequently getting the "Error: 0".
  1. Post in the correct place

  2. Perhaps you should read the manual.
    How To Interpret Answers.
              RTFM and STFW: How To Tell You've Seriously Screwed Up.

  3. Check your return codes, and report your errors.

    Don't look at GLE/LE unless you have an error. Don't just silence the compiler, it is trying to help you.
              What are Function return values ? How do I use them ? - MQL4 programming forum
              Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles

    Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.

  4. Beyond that, do you really expect an answer? There are no mind readers here and our crystal balls are cracked.

    We can't see your broken code.
    How To Ask Questions The Smart Way. 2004
              Be precise and informative about your problem

    Fix your broken code.

Harsh Mali
14
Harsh Mali  
Keith Watford:
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
Sorry for that i remind it.
To add comments, please log in or register