Questions from Beginners MQL5 MT5 MetaTrader 5 - page 317
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
,.
,.
EA has stopped opening positions because "invalid integer number as parameter 9 for 'OrderSend' function". Can someone explain what this is? Presumably it's because of MT4 terminal update.
I wonder if you can add an animation to the chart in MQl5, like a guy who is pounding on the candlestick, on the indicator signal or just like that
The animation will have to be created manually from many successive .bmp images. Or draw from an array of dots on canvas.
Greetings, Little Dwarf, where is "KANVAS"? I know that animation is done in Photoshop, but "KANVAS" has not been, how do I buy a ticket there?
Cause google led me to some kind of dairy.
Greetings, Little Dwarf, where is "KANVAS"? I know that animation is done in Photoshop, but "KANVAS" has not been, how do I buy a ticket there?
I don't know, but I googled it and found a dairy.
CCanvas isa class for creating custom graphics.
Examples of use, the path from MetaEditor: ...\MQL5\Scripts\Examples\Canvas\
I wonder if you can add an animation in MQl5 to a chart?
Here's more:
Forum on trading, automated trading systems and testing trading strategies
Questions from newbies
Renat, 2012.10.20 14:30
Did you know about the perfect hint of backbuffering in our kanvases and linking to an object on the screen?
We can draw frames perfectly, quickly and without artefacts. Take a look at the video example based on frame sequence generation in OpenCL Test.
Use a nice tactic:
This is where the magic happens. The graphical object receives a direct binding to the graphical resource. And this binding is intelligent with caching, as it was specially created for quick paging and backbuffer handling.
//--- рисуем что хотим в buf ....
To do this, we "rebuild" the resource (no rebuilding actually happens, because all sizes are the same), copy the new bitmap to it, and the change counters of this resource are incremented.
Note that the graphical object objname itself isn't touched in any way as it's already associated with the resource.
Then we call Screen Redraw via ChartRedraw which requires drawing of the graphical object. It is bound to our resource which it controls using the bitmap alteration counter. If the change counter of bitmap saved in the graphical object doesn't coincide with the counter of resource, the bitmap will be automatically copied to the graphical object and visualized in a protected way. If, however, the counters match, then the picture is shown without any changes.
This is a simple method of safe (from simultaneous access from MQL5 and the terminal rendering system itself) and quick work with rendering frames.