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
Added two more buttons - for setting Horizontal Lines.
-------------------------------------------------
Added commands for Horizontal or Trend lines
Added commands for Horizontal or Trend lines
Have a nice day and good mood everyone!
What did Roman ask for? Here's a quote from his first post: "Completely program, to open a trade when it starts and please explain what's what. Help out a lot."
Just add codes without explaining what they are for is useless!
Roman, your solution to this situation is exactly the same as mine. Take any simple Expert Advisor from CodeBase, well, at least this one https://www.mql5.com/ru/code/138
Open its code in MetaEditor and begin to study the comments that are in each line of the code. There are EAs where all comments are written in English. If you do not know the language well, Google Translator will help you. If in any Expert Advisor, the commentary to the lines is missing, then sequentially search all colored words in the program code, set the cursor on them, press the F1 key and the appropriate sections of the MQL5 manual will open for you. Read these sections, comment on these lines in your own words, and if something is not clear, then ask questions here. This way, you will move faster in learning the programming language.
Regards, Vladimir.
Good day and good mood everyone!
What did Roman ask for? Here's a quote from his first post: "Completely program, on opening a trade when it starts and please explain what's what. Help out a lot."
Simply adding codes without explanation is useless for him!
Roman, your solution in this situation is exactly the same as mine. Take any simple Expert Advisor from CodeBase, well, at least this one https://www.mql5.com/ru/code/138
Open its code in MetaEditor and begin to study the comments that are in each line of the code. There are EAs where all comments are written in English. If you do not know the language well, Google Translator will help you. If in any Expert Advisor, the commentary to the lines is missing, then sequentially search all colored words in the program code, set the cursor on them, press the F1 key and the appropriate sections of the MQL5 manual will open for you. Read these sections, comment on these lines in your own words, and if something is not clear, then ask questions here. This way, you will move faster in learning the programming language.
Regards, Vladimir.
I do not understand - is it better to delete what I cheated? - That he himself, how to learn?
I don't get it - is it better to delete what I did? - so he can learn on his own?
Not delete, but explain what is written in the codes and why it is done!
Sincerely, Vladimir.
Not delete, but explain what is written in the codes and why it is done!
Respectfully, Vladimir.
I'm self-taught myself - and I copy from the available codes myself, - The problem is that I don't know how to explain how to sculpt!? - something inside tells me how to sculpt.
----------------------------------
I know what I've moulded, what's missing there is a Thrall for the line.
I am self-taught myself - and I copy from the available codes myself, - The problem is that I don't know how to explain how to sculpt!? - something inside tells me how to sculpt.
That's exactly the problem! When I started studying the MQL5 language, I read a lot of articles on creating Expert Advisors. STARTING I haven't found it yet. Of course, there are some articles with links to Roman, but they are not enough, at least for me.
I myself, for example, see a lot of EA codes, but no way to understand why this or that line was written. So far, I have had enough brains to rewrite the code for myself using one of the ready-made Expert Advisors.
Regards, Vladimir.
That's the problem! I have read a lot of articles on creation of Expert Advisors when I started studying the MQL5 language. BEGINNERS I haven't found it yet. Of course, there are some articles with links to Roman, but they are not enough, at least for me.
For instance, I see a lot of Expert Advisor codes myself, but I cannot understand why this or that line was written. So far, I've had enough brains to rewrite the code for myself from one ready-made Expert Advisor.
Sincerely, Vladimir.
I'm looking for functions for my tasks - I take a function apart as I start to understand how it works, then everything is easier to learn.
I look for functions for my tasks - I take the function apart as I begin to understand how it works, then everything is easier to learn.
Here is a live example of one problem that I have been struggling with for over an hour. I need it to create and display ZigZagColor indicator on the chart at the start of the EA. It was done in int OnInit:
The indicator was created and displayed. Now I need the indicator to be deleted after the Expert Advisor is removed. I am writing it:
But the indicator is not removed. I have sorted everything out. I have cleaned the handle and applied the delete function. I wonder what is the reason why it is not uninstalling.
Regards, Vladimir.
Here is a live example of one problem that I've been struggling with for over an hour. I wanted the ZigZagColor indicator to be created and displayed on the chart when starting the EA. It was done in int OnInit:
The indicator was created and displayed. Now I need the indicator to be deleted after the Expert Advisor is removed. I am writing it:
But the indicator is not removed. I have sorted everything out. I have cleaned the handle and applied the delete function. I wonder what is the reason why it is not uninstalling.
Regards, Vladimir.
There is a more complicated function for deleting