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

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
Can you tell me how to do it correctly
not to enter all elements that I want to add up, but just specify 5 elements
No, that's not it. So far I've done this
For some reason they give different results after the while loop.
I wanted to optimize it so I would not constantly write a long line iHigh(NULL,PERIOD_H1,i) but would store it in a variable. Changed it to a variable in the loop, the result is different.
For some reason they give different results after the while loop.
I wanted to optimize it so I would not constantly write a long line iHigh(NULL,PERIOD_H1,i) but would store it in a variable. Changed it to a variable in the loop, the result is different.
depends on what context to consider...
If your while loop plays with i, theniHigh(NULL,PERIOD_H1,i) and H will be different... Because H stores the data of the other i
Yes, you're right, it plays with i. I mean, thank you.
Is there any way to cut the history? When you download it, it's 20 years old, but you need it 2-3 years ago...
Use the "Shift" key to select the data you don't want and delete it
Use the "Shift" key to select the data you don't want and delete it.
Thank you
Good afternoon, again)
Second question:
I want to close orders partially. But there is a problem, when partially closing orders, as I understand it, the order ticket changes, and from this the last becomes the first, and the main thing for me is to keep the order of opening. In order for the last ones to stay last. How we may track the previous order. Does the opening price change? If possible, with examples)
Thanks in advance