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

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
Question: a panel is created with a size of 370, how do I resize it to 200 when compressing the graph ?
and what's the problem with redrawing? delete and redraw, the only issue is inside the panel if it suddenly becomes smaller than required. and then the scrolls. If you can specify the width as a percentage, it would not be bad.
HZZ in chrome something has happened, my site in the engine (in php), the window width percentage works, height does not want to be the minimum, only when explicitly specified in pixels, it works, operating system, too, stopped taking the percentage height, the mosilla so far works. But in chrome, you can change the values in the code of the page, and everything works)
What's the problem with redrawing? delete and redraw, the only issue is inside the panel if it suddenly becomes smaller than required. and then the scrolls. If you can specify the width as a percentage, that wouldn't be a bad thing.
...
That's the point, I want to redraw it, but I haven't found a way to do it, and I found it later:
The panel itself resizes, but the content does not, how can I redraw it?
Full code, indicator:
That's the thing, I want to redraw it, but I haven't found a way to do it, and I found it later:
The panel itself resizes but the content does not, how do I redraw it?
Full code, indicator:
I'm no expert, but would do something like this
I'm no expert, but I would do something like this
This is a bad approach with removal.
This is a bad approach with removal.
Can we put the parameters
here?
Can we put the parameters
in here?
You can, but it doesn't solve the problem
You can, but it doesn't solve the problem
The size of the panel changes, but the size of the content does not, and not all of the content is displayed:
There are 40 items in the content, only what fits in the height dimension when the dialog is first created is displayed.
---
Help with the solution, who can.
The panel is resized, but the size of the content is not changed and not all of the content is displayed:
There are 40 items in the content, only what fits in the height dimension when the dialog is first created is displayed.
---
Help with the solution, who can.
Did you want to change the size of the window without changing the size of the content??? And not only the size, but the coordinates have to be recalculated depending on the size of the window. And even the font size of the element labels...
I would like to know one thing, how to close orders on a profit. Let's say I open 4 orders, two buy, one in Eurica and one buy on Chif. And also one Sell / I set the code Profit = 10;
I should correctly formulate the code so two buys closed on the total Profit or two shares closed on the total.