Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1607

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
Good night!
Dear forum users, I need some help. I wrote a script in MQL4 that draws a line by a formula from three given points on a chart. It takes 130 lines, including indents and spaces. I have recently decided to port it to MQL5 and realized that my poor knowledge of programming will not help me as I need to learn again.
There is an error in the zero divide code, fix it first
a1=(y3-(x3*(y2-y1)+x2*y1-x1*y2)/(x2-x1))/(x3*(x3-x1-x2)+x1*x2);
Here division by "0" because x1 and x2 equals "1", which results in "0".
Do a check before the matrix operation
You're a joker. But the problem is real, and there are topics about that the command Print prints twice in the tab Experts and Allert also comes twice, only there is no answer alas how to fix it. And for the future, if you do not know, you can just keep silent and pass by, but to gain rating themselves unprofessional answers is stupid. Yes, by the way, your answers are really very weak.
Good night!
Dear forum users, I need some help. I wrote a script in MQL4 that draws a line by a formula from three given points on a chart. It takes 130 lines, including indents and spaces. I have recently decided to port it to MQL5 and realized that my poor knowledge in programming will not help me, I need to study again.
I will be grateful if someone is ready to port the script to MQL5. I would be very thankful if somebody would like to convert the script to MQL5.
If you wrote the script, why do you need it in your code?
As the question is, so is the answer.
Well, you could have just written that more details are needed. I wrote the code of the simplest indicator (it couldn't be simpler), but it generates two messages at the Print command too. And if you omit getting Handle, it gives one message.
***
If you wrote the script, why in the code is it
Well, you could have just written that more details are needed. I wrote the code of the simplest indicator (it couldn't be simpler), but it generates two messages at the Print command too. And if you don't get Handle, you get one.
Oh, dear... I've got only foul words in my vocabulary. That's why I'd better keep silent.
Since my programming skills are on the level of a schoolboy, I took some working piece of code and rules from it. What did not interfere, did not touch)
Got it.
If anyone helps, I owe you a whisky anyway!)
I think whisky from ......... is not cheaper than $30. Therefore, it's easier to create an application on a freelance site and there will be willing, about 20 people... And this is your message you provoke people to break the rules. Who needs it? Well, do it for free, and then what? After all, a bottle you have not passed, so it's a job for the money bypassing freelancing.
There are no errors, but the timing function is not correct, there was not enough time)
And it is better to verify division by zero in 5, before the division operation If the divisor is zero, then....
Yes, by the way, your answers are really very weak.
Here's the code of the simplest inductor (it couldn't be simpler)
There are five mistakes in a six-letter word...
and I'm too weak to correct you.
Bummer... The only words I have left in my vocabulary are foul words. So I'd rather not say anything.
What did I ever do to you? Or are you all so aggressive?