Hi JCL,
I cannot make sense of how StartWeek/EndWeek work. The following code generates strange results (See attached).
function run()
{
BarPeriod = 1;
StartWeek=72117; EndWeek = 52100;
Weekend=3;
}
1) In both cases, the last bar of the week is 20:59. Why?
2) In both cases, the week does not start from 21:17. Why?
3) On 16/12/02-04, there is a "Weekend bar" (appearing as Sun, 22:00) - which has the start on Fri,20:59 and ends on Fri,22:00...With Weekend>=2 such bar should not have been created.
Please help.