Checking bar existence for current date, MQL5
Hi,
If your line is placed by script, what's your problem exactly ? When you place a line it's up to you to choose where to place it.
Please show the relevant code.
I see now. The first day of a week is always Sunday, see documentation :
Thus, if the current day is Saturday, at the attempt to copy data on a week timeframe specifying start_time=Last_Tuesday and stop_time=Last_Friday the function will return 0, because the open time on a week timeframe is always Sunday, but one week bar does not fall into the specified interval.
Dear Friends,
Please, who can help me with my problem?
Line is placed by script, so, I want to check date existence and place it exactly on week start. Or, I it will be nice to have any solution to achieve result.
Regards,