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. Check out this script.
And the code?
What do you think, Nikolai?
Would you admit to making a lot of noise out of nothing? Yes, the algorithm may be slower than yours and it had a couple of bugs. It hasn't been debugged on MT5 yet. But it works.
Your algorithm doesn't work, provide a script (proof with visualisation) that your algorithm works on the whole range of colours.
I did.
It works. Slightly different from Nikolai's script. There's a blue bar on the left. But don't you think it's not very smart to say"your algorithm doesn't work"? Especially for a man of experience.
And about "I understand why we need MT4... MT4 will take it out..." and so on... - That's not brilliant at all. Yes, MT4's syntax requirements are lower than MT5's. But, it's also slower. Which means you have to try really hard to make everything work fast.
That is the purpose of MT4. In order to reach the maximum speed on it, and then get even more, when you switch to MT5.
You, as a developer, should understand that.
Provided.
It works. Slightly different to Nikolai's script. There's a blue bar on the left. But don't you think it's not very smart to say"your algorithm doesn't work"? Especially for a man of experience.
And about "I understand why we need MT4... MT4 will take it out..." and so on... - That's not brilliant at all. Yes, MT4's syntax requirements are lower than MT5's. But, it's also slower. Which means you have to try very hard to make everything work fast.
That is the purpose of MT4. In order to reach the maximum speed on it, and then get even more, when you switch to MT5.
You, as a developer, should understand that.
I did not. mql5 code please.
What do you think, Nikolai?
Why don't you admit to making a lot of noise out of nothing? Yes, the algorithm may be slower than yours and it had a couple of bugs. It's not yet debugged on MT5. But it works.
Pyotr, are you aware that
Is equal to .
You've asked for a number 2 with a tangent. Top-notch.
Woe betide.
Let's call the number63.43989 Peter's number.
Peter's theorem:
The tangent of Peter's number equals two.
Not provided. mql5 code please.
I will debug it and provide it. Do you think I can't do it?))
I understand that the algorithm should work on both platforms. I slightly underestimated the difference in platforms. I thought that it would not be a problem to port it from MT4. I was wrong about that.
But the concept of the algorithm is correct. You can see it on MT4.
Speed lags behind your analogue on MT4, because I'm using string type.
Later, I will make a variant with type uint. Then we will compare speed of both algorithms on MT4.
Then, we will move on to comparison on MT5.
Nikolai Semko:
Peter, are you aware that
equals .
and that the parameter for the tan function is not in degrees, but in radians.
You're asking for the number 2 with a tangent. That's aerobatics.
Woe is me.
Let's call the number63.43989 the number of Peter.
If you don't understand, I'm translating degrees into radians.
That is the translation. Look on the internet to find out how to convert degrees to radians and vice versa.
Yes, the value oftan((63.43989*pi)/180) is constant. You think I haven't seen it? However, I prefer to see it that way.
Provided.
It works. Slightly different to Nikolai's script. There's a blue bar on the left. But don't you think it's not very smart to say"your algorithm doesn't work"? Especially for a man of experience.
And about "I understand why we need MT4... MT4 will take it out..." and so on... - That's not brilliant at all. Yes, MT4's syntax requirements are lower than MT5's. But, it's also slower. Which means you have to try very hard to make everything work fast.
That is the purpose of MT4. In order to reach the maximum speed on it, and then get even more, when you switch to MT5.
You, as a developer, should understand that.
The code presented on the first page does not work, and only thanks to comments of forum visitors it starts working.
Check your algorithm on colour 0,0,0 and 255,255,255,255.
The code presented on the first page does not work, and only thanks to comments from forum members does it start to work.
Check your algorithm on colour 0,0,0 and 255,255,255,255.
Take the script from this page. In it the range of colour change is given by Nikolay's algorithm. I have connected my function to it.
The script on the first page is intended only for outputting shades via Alert.
If you are not satisfied with Nikolai's range, then why did you give his rendering as an example?