
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
My advice is.
- There are ready-made functions, you just need to understand their application. Ask yourself what you need and look for ready-made functions for your solution.
Thank you, I will take it into consideration.
Regards, Vladimir.
I continue studying the MQL5 programming language. The new script is dedicated to creation of an assistant that I will need for deleting all graphical objects from the trading terminal. As I promised earlier, I tried to describe everything in this script for the 1st year pupils of the programming school.
Regards, Vladimir.
I continue studying the MQL5 programming language. The new script New3.mq5 sets the horizontal line at the price level I need. As promised earlier, I have tried to describe everything in this script for a first-grade student of the programming school.
Regards, Vladimir.
I continue studying the MQL5 programming language. The new script New4.mq5 sets the vertical line at the date and time I need. As promised earlier, I have tried to describe everything in this script for a first-grade student of the programming school.
Regards, Vladimir.
Why write like that?
The handbook is said to be over 6,000 pages long, it will take a long time to learn :)))
Better start with operators, try writing simple examples.Here's the initial setup for the script:
Then read the help with the operators and try to add them one by one to the script, and see what happens.
You may want to start with them first:
Conditional if-else statement
Cycle operator for
Do-while loop operator
Select switch statement
Be sure to write the code so you can memorize it and make sure you understand it correctly.
I continue studying the MQL5 programming language. The new script New3.mq5 sets the horizontal line at the price level I need. As promised earlier, I have tried to describe everything in this script for a first-grade student of the programming school.
Regards, Vladimir.
Examples of drawing objects you can find in the source files of indicators, for example
Why do you need to write so?
They say that there are more than 6000 pages in the reference book, it would take too long to learn :)))
Better start with operators, try writing simple examples.Operators are more interesting )
Here's the initial setup for the script:
Then read the help with the operators and try to add them one by one into the script, and see what happens.
You may want to start with them first:
Conditional if-else statement
Cycle operator for
Do-while loop operator
Select switch statement
Be sure to write code to memorize it and check understanding.
Thank you, Alexander! I have made a plan of self-study which I am sticking to now. In brief, the self-study plan is based on "from simple to complex" principle. With each new script tasks will become more complicated and interesting. Please note that my age doesn't allow me to quickly grasp everything on the fly, so I have to spell it out for myself several times.
Thank you very much for your feedback! I will take your advice to heart.
Sincerely, Vladimir.
Examples of drawing objects you could find in the source files of the indicators for example
Operators are more interesting )
All is right, but just take a ready-made example or write your own code - that's two big differences. At least for me. Thank you very much for the tip!
Regards, Vladimir.
Thank you, Alexander! I've made a self-study plan, which I now stick to. In short, self-study follows the principle "from simple to complex". With each new script tasks will become more complicated and interesting. Please note that my age doesn't allow me to quickly grasp everything on the fly, so I have to spell it out for myself several times.
Thank you very much for your feedback! I will take your advice to heart.
Regards, Vladimir.
You have a wrong education plan, you start from the wrong place.
Here you have studied the function:
This is not simple, relatively, and requires basic knowledge already.
To confirm this, try to answer the questions on this function, you probably won't be able to, which indicates the wrong direction of learning:
Why is "My_line_2" in quotes and OBJ_VLINE without?
int sub_window, // индекс окна datetime time1, // время первой точки привязки double price1, // цена первой точки привязки
What does int, double mean here, and how are they different?
Why is sub_window written and not the other way around, what's the point?
You don't need to learn functions from the help, you need basic elements of the language, the basic principles of working with the trading environment, with files, miscellaneous data, and others, it depends on the task at hand.