Ok!

This code
Quote:
function run()
{
set(LOGFILE);
BarOffset=1;
BarPeriod=5;

StartWeek=72000;
EndWeek=52100;


Weekend=1;
}

generates this output with Weekend=1
Quote:
[1868: Fri 16-05-13 20:56] (122.82)n FrameOffset: 0, timeFrame=1 ET Time=1656, O= 122.80200, C= 122.82400

[1869: Fri 16-05-13 21:01] (122.99)n FrameOffset: 0, timeFrame=1 ET Time=1701, O= 122.82400, C= 122.98700

[1870: Sun 16-05-15 21:21] (122.85)n FrameOffset: 0, timeFrame=1 ET Time=1721, O= 122.94500, C= 122.84800

[1871: Sun 16-05-15 21:26] (122.86)n FrameOffset: 0, timeFrame=1 ET Time=1726, O= 122.86400, C= 122.86400

and this - with Weekend=2;
Quote:
[1858: Fri 16-05-13 20:51] (122.80)n FrameOffset: 0, timeFrame=1 ET Time=1651, O= 122.80300, C= 122.80200

[1859: Fri 16-05-13 20:56] (122.82)n FrameOffset: 0, timeFrame=1 ET Time=1656, O= 122.80200, C= 122.82400

[1860: Sun 16-05-15 22:01] (122.87)n FrameOffset: 0, timeFrame=1 ET Time=1801, O= 122.82400, C= 122.87300

[1861: Sun 16-05-15 22:06] (122.85)n FrameOffset: 0, timeFrame=1 ET Time=1806, O= 122.84600, C= 122.84700


1) StartWeek with Weekend=2 keeps its default value of 2200.

2) There is indeed no extra weekend bar; must have been fixed in the new ver.

3) It will be very useful to have StartWeek/EndWeek precision down to a minute. Why not?

There needs to be an ability to "end the week" at the desired time: close all bars/timeframes at that time, not generate any bars nor timeframes during the weekend, and similarly start the week at StartWeek (start the first bar at StartWeek)
Would it be possible to add such a mode to Weekend?

Together with StartMarket/EndMarket, this would help emulate the concept of "Sessions" commonly used in other software.