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

 

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.

Документация по MQL5: Операции с графиками / ChartOpen
Документация по MQL5: Операции с графиками / ChartOpen
  • www.mql5.com
Операции с графиками / ChartOpen - Документация по MQL5
 
Quantum:
Closing an open position means making a trade in the opposite direction.
In which lines is it described?
 

Great article. I didn't read the whole thing, but I quickly found what I was looking for.

 
SHOOTER777:

What's the convenience...?

Fewer letters.
 
I also have problems with testing, unlike in the previous case, I uploaded the history, started testing, but the result is nil.
Files:
 

Thanks but didn't talk about how to Close positions.

 
song_song:

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. 

 
Quantum:

What does it say in the log? Please provide the log file of the tester.

 
Quantum:
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.
 
Tincup:
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.

Files: