Dasio1986:
Certainly, but you have firstly to identify the problem. Does it returned an error code or something in the log ?
Hi,
i'm running an ea both currencies and stock market. The problem is that the ea wrk perfectly in currencies but doesn't open position in the stock market.
I need to know if exist some parameter the must be change for an ea to work in stok market.
Thank you

OOP in MQL5 by Example: Processing Warning and Error Codes
- 2010.05.26
- KlimMalgin
- www.mql5.com
The article describes an example of creating a class for working with the trade server return codes and all the errors that occur during the MQL-program run. Read the article, and you will learn how to work with classes and objects in MQL5. At the same time, this is a convenient tool for handling errors; and you can further change this tool according to your specific needs.
angevoyageur:
Certainly, but you have firstly to identify the problem. Does it returned an error code or something in the log ?
Certainly, but you have firstly to identify the problem. Does it returned an error code or something in the log ?
Hi, the platforms don't return any error. Internally i code all variable automatically.
Period, Symbol etc etc
Dasio1986:
Hi, the platforms don't return any error. Internally i code all variable automatically.
Period, Symbol etc etc
If you send an order to buy/sell and you don't get a position, then there is an error somewhere, you have to get this error from your code and print it.
Can you show the code you are using to send the trade request ?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
i'm running an ea both currencies and stock market. The problem is that the ea wrk perfectly in currencies but doesn't open position in the stock market.
I need to know if exist some parameter the must be change for an ea to work in stok market.
Thank you