Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners" - page 2

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
Hello,
I have done everything as written, hours, interval and so on, but when I test it, it shows completely different results on the chart. Also, when I click"open chart" (trading result) the chart does not show any trades.
Closing an open position means making a trade in the opposite direction.
Great article. I didn't read the whole thing, but I quickly found what I was looking for.
What's the convenience...?
Thanks but didn't talk about how to Close positions.
Thanks but didn't talk about how to Close positions.
Yes, it's true that the article does not dicsuss how to close positions in details, however, if you open a Sell position, once you open a Buy, the sell position is automatically closed.
Therefore, to close a Buy position, open a Sell; and to close a Sell position, open a Buy.
Thank you.
What does it say in the log? Please provide the log file of the tester.
What does it say in the log? Please provide the log-file of the tester.
Apparently it is necessary to address specifically to someone from the company, because as I understood the author does not understand our language very well. I just compiled his Expert Advisor into my terminal and ran it for testing, but it was not tested. The Expert Advisor remained attached to the chart and I forgot about it, but it made a trade today. That is, it makes trades, but it does not want to be tested in any way. What is the matter? Can someone explain something. I attached the file earlier.
Hello Tincup,
I translated my comment in English and I decided to reply. Firstly, there is nothing wrong with the code in the article, it compiles well, and work well.
I tried to look at the picture provided earlier ad I found that the code you tried to execute is not the same code with this article. It has been modified. If the modified code does not work, how does that affect the author?
I have provided below tests of the code, both in English and Russian. These tests were conducted this morning. You can try and validate it yourself. I didn't change the input parameters for Russian, but I can change the input parameters for English code.
If you have problems with the modified code, I can help if you want me to.
Research the results I presented and let me hear your feedback on them.
I don't understand Russian, but I use Google Translate to read and answer.
I hope I answered your question
Thank you.