Make a check, if bar is negative, then add time to zero bar. You should write your own function MyTime(int bar), if bar is less than zero, then add time to the zero bar, otherwise use Time[].
Again, it will count forward calendar days instead of bars from zero bar.
I would like to loop through the days in order of the month and the number of days of the month For example, if the first point is on the 18th and the second point is on the 05th, then count days in order from 18 to 05 and if after 24 goes 27, then memorize the value of 2, etc. I think this is the only way to do it
intBars( stringsymbol_name,// symbol namesymbol name ENUM_TIMEFRAMEStimeframe,// period datetimestart_time,// from which date datetimestop_time//to which date );
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Make a check, if bar is negative, then add time to zero bar. You should write your own function MyTime(int bar), if bar is less than zero, then add time to the zero bar, otherwise use Time[].
Again, it will count forward calendar days instead of bars from zero bar.
I would like to loop through the days in order of the month and the number of days of the month
For example, if the first point is on the 18th and the second point is on the 05th, then count days in order from 18 to 05 and if after 24 goes 27, then memorize the value of 2, etc.
I think this is the only way to do it
intBars(
stringsymbol_name,// symbol namesymbol name
ENUM_TIMEFRAMEStimeframe,// period
datetimestart_time,// from which date
datetimestop_time//to which date
);