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

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 show me how to expand a loop without creating variables?
Unwrap, i.e. do it backwards - do not start from zero but froman ArrayRange
and decrease the counter
Where can I find information on creating trading panels with examples etc.?
Help with writing code for a panel like this:
***Where can I find information on creating trading panels with examples etc.?
Help with writing code for a panel like this:
***Use the message editor functions:
Use themessage editor commands to format text and insert images/codes/tables:
Use the message editor functions:
Use themessage editor commands to format text and insert images/codes/tables:
where "form" is the name of the panel itself and text_field_1 to text_field_10 is the place where different data will be displayed ( average price for a certain period of time, maximum price, minimum price, SL, TP and so on...) which will change periodically depending on the market situation
For better understanding of what I'm talking about, please reserve these names:
for the panel name (form): imya_paneli
names for displayed data in text fields: teckstovoe_pole_1 to teckstovoe_pole_10
names of text fields (leave them as they are (EURUSD, GPBUSD, SL, TP, M1, M2, M3, M4, M5, M6))
And perhaps the most important point: the form should not be transparent, i.e. in the place where the form will be displayed, you can not see candles inside the form itself.
PS apologies, I had to attach a picture, because I can't insert it into messages using message editor functions
There is a current date (15.04.2019) and a manually entered date, e.g. 26.04.2019.... how to calculate the number of days with the weekend to get 10 days???
Check if it will work with the time in the future. Otherwise only by checking on the day of the week and adding up without days off.
Is it true that prefix increment ++i works faster than postfix i++ rumoured to be 10% difference?
check it yourself, here is a good examplehttps://www.mql5.com/ru/forum/287618/page15#comment_9810652
If you need more performance in calculations - definitely MQL5, only pure C++ can outrun it
Does debugging work in MQL4, I'm tired of shoving the Print function on every second line, if so where to see how to use it?
https://www.metatrader5.com/ru/metaeditor/help/development/debug
It works the same for MT4, but it seems that debugging on history does not work, but for normal tasks - breakpoint and look at variables all works in MT4 without problems
I looked through the Include folder and couldn't find how functions like ArrayResize() orArrayCopy() are arranged.As it became clear to me they are used there by default, here is an example of code
taken from the file ArrayDouble.mqh, there is no access to these functions and even vice versa they are used in the design of other functions or mechanisms. I looked at other files and did not understand how to get access to the internal code of functions such as ArrayResize() orArrayCopy(), who knows how to look at the internal code of these functions?