
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
not a circle on a plane, but a cylinder in 3d :-) The course will come out in a spiral. If you successfully mark up the cylindrical coordinates, it's a pretty sensible thing
Then not a circle on the plane, but a cylinder in 3d :-) The course will come out in a spiral. If you successfully mark up the cylindrical coordinates, it's a pretty sensible thing
It's actually not at all difficult to implement. 2-5 lines of code in addition. If no one has done it before me, when I have a spare minute, I'll do it.
But it's better to have a 4K screen
then not a circle on a plane, but a cylinder in 3d :-) The course will come out in a spiral. If you successfully mark up the cylindrical coordinates, it's a pretty sensible thing
https://www.mql5.com/en/code/27662
Note the speed and size of the code.
And that's all without Direct X
https://www.mql5.com/en/code/27662
Note the speed and size of the code.
And that's all without Direct X
Magical!
What does the radius depend on?
Is it difficult to make the ring multicoloured?
Perhaps this visualisation would be useful for evaluating the best 50 passes in optimisation, or the whole optimisation in compaction.
https://www.mql5.com/en/code/27662
Note the speed and the size of the code.
And that's all without Direct X
Simply, magic. !!!
And if you add a polar grid to the axis, and the ability to change the scale, up to almost straight "parallels" (and parallel "meridians" )), you get a smooth transition to traditional graphics.
https://www.mql5.com/en/code/27662
Note the speed and size of the code.
And that's all without Direct X
Thank you all!
It's magical!
What does the radius depend on?
Is it difficult to make the ring multicoloured?
Perhaps this visualisation would be useful for evaluating the best 50 passes during optimisation, or the whole optimisation during compaction.
The code for this 3D graphics and rotation control fits all in this function:
The input to this function is only an array of prices. Even a schoolboy can understand the code. A one-dimensional price array is converted into a 3-dimensional array of points. In the XY plane the price is represented in the polar coordinate system, where the distance r=sqrt( x2+y2) to the centre (0,0) is the price value.
The colour selection is the responsibility of this function:
whose input p is a number from 0 to 1, and whose output is the selected gradient colour. The skeleton of the colour pattern itself in this case consists of 6 colours (array Col)
You are free to colour in any way you want and in any way you want
Simply, magic. !!!
And if you add a polar grid to the axis, and the ability to change the scale, up to almost straight "parallels" (and parallel "meridians" )), you get a smooth transition to the traditional graph.
Sure, but I don't want to clutter up the code with different scales. In this case it was important for me to show the code which doesn't contain anything superfluous. So that it would be easier to understand it.
Sure, but I don't want to clutter up the code with different scales. In this case, it was important for me to show the code without anything superfluous. It would be easier to understand it.
Nikolay, a question about your library, how to take data into the Expert Advisor?
Nikolay, a question about your library, how to take data into the Expert Advisor?
I don't understand the question. iCanvas is a graphics library.
You are probably asking how to read data into EA if you create an indicator with line visualization via iCanvas and leave it bufferless? Then please express yourself more clearly.
First of all, no one forbids you to create buffer indicator arrays, as in a standard indicator, but simply make them INDICATOR_CALCULATIONS and then access the data through iCustom in the usual way.
Secondly, there is such a powerful tool, as resources. Indicator buffers are essentially the same resources. Anyway, they use the same mechanism of storage and access to the data.
Deal with resources. It's not very straightforward, but it's an important tool for transferring data. You can create your own libraries which are more efficient than the classic buffer arrays.
Personally, I use my own designs, which I don't publish. They are more convenient and efficient than the iCustom access. Everything is implemented exactly through the resources.