Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1464
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
Read: https://www.mql5.com/ru/articles/115
And also: https://www.mql5.com/ru/articles/503
Good afternoon!
Could you please tell me why forward testing is necessary?
Good afternoon programmers! Please help me with a script. I need the script to draw a multitude of vertical lines on the chart for a list of dates. That is, for example: I enter in the body of the code, a list of 100 dates for example, and the script just draws a vertical line for each date.
I started to try something here, but somehow it turns out to be very cumbersome, and it is only one line.
Good afternoon programmers! Please help me with a script. I need the script to draw a multitude of vertical lines on the chart for a list of dates. That is, for example: I enter in the body of the code, a list of 100 dates for example, and the script just draws a vertical line for each date.
I started to try something here, but somehow it turns out to be very cumbersome, and it is only one line.
The date in string through the separator.
Then split this string into an array.
Then loop through the array at each iteration by calling
Thank you. Since I'm a very superficial programmer. I'll start asking in order.
"Put the date in string with a delimiter."
Use " string TimeToString( ""
????
????
You don't need to convert anything to string to draw a line.
You described the problem, but you didn't describe it completely, so people have to figure it out.
How are you going to record 100 dates?
Are you going to write them in the body of the script?
Or will you enter them manually when launching the Expert Advisor?
You don't need to convert anything to string to draw a line.
You have described the task, but you have not described it completely, so people have to guess.
How are you going to record 100 dates?
Are you going to write them in the body of the script?
or will you enter them manually when launching the Expert Advisor?
I checked. The second case is good, but it is not suitable because of the need to enter each date into the window manually, which is time-consuming. It should be simple... "ctrl-c, ctrl-v".
In the first case, for some reason it does not draw 3 lines, but only one, on the most recent candle. Why, it is not clear yet, I'm looking into it.
Checked. The second case is good, but it is not suitable because of the need to enter each date into the window manually, time-consuming. It should be simple... "ctrl-c, ctrl-v."
In the first case, for some reason it does not draw 3 lines, but only one, on the most recent candle. Why, it is not clear yet, I'm looking into it.
The line name should be unique. I missed this point