Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners"
Вернемся к нашему советнику. Для значений, меньших 127 или 255, для экономии памяти можно использовать значения типа char or uchar, соответственно, однако для удобства мы зададим их значения как тип int.
What's the convenience...?
What's the convenience...?
good article =)
a little more block diagrams and you would be cool =)
for clarity =)
by the way, is there a print button?
really nice article, you should write the book your explaination are well structured!
by the way there seems to be a little ommission in the code of the file, the bool Buy_opened and the bool Sell_opened are not reset to false each time so in the tester it will only make 1 sell and one buy... you only have to replace this
bool Buy_opened,Sell_opened;
by this
bool Buy_opened=false;
bool Sell_opened=false;
and it works fine
please continu your good work writing interresting article like this !
really nice article, you should write the book your explaination are well structured!
by the way there seems to be a little ommission in the code of the file, the bool Buy_opened and the bool Sell_opened are not reset to false each time so in the tester it will only make 1 sell and one buy... you only have to replace this
bool Buy_opened,Sell_opened;
by this
bool Buy_opened=false;
bool Sell_opened=false;
and it works fine
please continu your good work writing interresting article like this !
Hi Gachette,
Thanks so much for your observation and commendation. I do appreciate it.
Your suggestion is actually a better way. It will be modified.
Thanks
I figured it out. Downloaded it for myself. It's not testing. Makes one trade and that's it. Which tamframes should I choose? I haven't changed anything in the code.
I figured it out. Downloaded it for myself. It's not testing. Makes one trade and that's it. Which tamframes should I choose? I haven't changed anything in the code.
What does it say in the log? Please provide the log file of the tester.
I figured it out. The history was not uploaded.
The second question - in the EA I have not found a description in the code about closing positions, from which I conclude that each trade can have only two results TP or SL. I have a lot of small trades. What is the matter, please explain?
The second question - in the EA I have not found a description in the code about closing positions, from which I conclude that each trade can have only two results TP or SL. I have a lot of small trades. What is the matter, please explain?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners is published:
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
Author: olowsam