![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Thank you! This option looks quite realistic!
Thank you for your question, because in answering it I realised one very important thing I didn't know.
I'd be surprised if anyone knew about it at all.
If you resize a canvas or its position using ObjectSetInteger, you don't need to redraw it.
This indicator demonstrates it. The canvas is generated only once. But its size and location can be changed, and the array of values is retained. Simply move the mouse across the screen
can you save to a video?
you can
cool! hopefully not by creating a million images and then assembling them into a video in some video editor?))
if you don't mind, please elaborate
cool! hopefully not by creating a million images and then assembling them into a video in some video editor?))
if you don't mind, please elaborate
No, of course not.
It will.
No, of course it doesn't.
It's a hassle.
you don't need the code, give me a hint how to do it.
Well, the terminal calls ChartRedraw() by itself according to these events;)
no code needed, hint how to do it
There are a lot of options depending on what kind of video you want to capture. Just what happens in the window in real time with mouse pointer, indicators, objects, GUI ? Or something else?
Well, the terminal itself calls ChartRedraw() on these events;)
I understand it, I just did not want to go into details.
I drew your attention to it because the chartRedraw() does not redraw the canvas object, it is redrawn only duringUpdate(). And if you use ObjectSetInteger to redraw the canvas object it is enough to force ChartRedraw() or wait for the change of chart or arrival of a new tick, when ChartRedraw() occurs.