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
That's right! I have the time in days. And the training period and how many days have passed since I started. I guess I don't understand something.
Respectfully, Vladimir.
Thank you, Peter! I have already been helped to understand this issue.
I continue studying the MQL5 programming language and today I am pasting the code of a script, which is a continuation of one of the tasks from the participants of this thread. I tested the script in all modes. Everything works as it should. I have set the input parameters to a minimum to begin with.
Regards, Vladimir.
Do you do ... finish writing the Russian names in the names of variables and functions. This is considered very bad form. Clearly you're making programs for yourself, but this is not 1C after all. Get used to the standard codestyle at once. Then it will be easier for you to read other people's code from Expert Advisors and indicators, which you will definitely need.
In terms of condition logic, the string "I will learn the language" can be output as a result of calculating the time and patience available to learn it. If one of the parameters (time or patience) equals zero, you won't be able to learn the language. Therefore, there is a logical error in the condition.
Do you mean a logical error in the condition of the function itself or in the operation of the script?
Regards, Vladimir.
You should... stop writing Russian names in the names of variables and functions. This is considered very bad form. I understand that you are making programs for yourself, but it's not 1C after all. Get used to the standard codestyle at once. Then it will be easier for you to read other people's code of Expert Advisors and indicators, which you will definitely need.
Vasily, you won't believe it, but I'm all for it! It's just the condition of the task has been given in Russian, hence the continuation. I will definitely rewrite the script using English.
Regards, Vladimir.
Do you mean a logical error in the condition of the function itself or in the operation of the script?
Respectfully, Vladimir.
There are no syntax errors in the code, but the logic is broken, and you have to watch it closely.
The calculation itself in the sufficiency_time function is illogical. Time is sufficient when it is not zero. The function calculates the time difference and returns a logical yes/no. That is, the function is not structured correctly. Recalculate sufficiency_time().
Although, no. The function returns ushort, but there's still no logic. The sufficiency_time should be greater than zero.
It's clear now, just need to figure out how to do it. It will be something to do at the weekend.
Regards, Vladimir.
There are no syntax errors in the code, but the logic is broken, and you have to watch it carefully.
If you're writing for beginners, write in plain language, there's nothing to go into from afar, to belittle.
and your threats will see where they may be of interestI continue studying the MQL5 programming language and am posting the code of a script, which is a continuation of one task from the participants of this thread. The script has been tested in all modes. No problems were detected. Applied the minimum number of input parameters to start with. The script code is written in English, the comments to the code are in Russian, to ease the learning process. As I promised earlier, I tried to describe the script in a manner comprehensible to a pupil of the 1-st form of programming school.
Best regards, Vladimir.
First, learn how to work with string variables from Dmitry Fedoseyev, infostringements are very foggy at the stage of studying other people's code,
In the article he reviewed, everything is clear, and you'll learn a lot of things at the same time, I'm speaking as a reader of most articles here, I think no one has read more than me)
That's right! I have the time in days. And the training period and how many days have passed since I started. I guess I don't understand something yet.
Regards, Vladimir.