modified customized TF indicator

 

I have 2 inquiries about the attached customized TF indicator.

1.

When the indicator start from using the history data to generate customized TF please?

Let's say my MT4 chart history only keep up to 5th May 2014 (Monday), if i attached the indicator on H4 and set 8 in PeriodMultiplier to generate H32 chart, the H32 candlestick should be 0.00 (5/5/14), 8.00(6/5/14), 16.00(7/5/14) and so on....

If another MT4 chart history only keep up to 6th May 2014(Tuesday), if i attached the indicator on H4 and set 8 in PeriodMultiplier to generate H32 chart, the H32 candlestick should be 0.00 (6/5/14), 8.00(7/5/14), 16.00(8/5/14) and so on....

Mean diffrent MT4 history chart generate different H32 candlestick chart, but there are no such problem, no matter what history chart, the indicator generate same high low H32 candlestick chart, may I know when the indicator start to use history chart to generate h32 chart please?

Is that due to using Time array. Time array is series array that contains open time of each bar of the current chart. Data like datetime represent time, in seconds, that has passed since 00:00 a.m. of 1 January, 1970. Does it mean that that's standard time to use from 00.00 a.m of 1 January, 1970 ?


2. 

When I attached the indicator to H4 and set 4 in PeriodMultiplier (variable of indicator), so it will generate H16 TF, it will include weekend data.
i wish the indicator exclude counting saturday and sunday.
Let's say H16 candle open on friday 16.00, next candle should be next monday 8.00
Could anyone please modify this indicator in order exclude counting saturday and sunday please? TQ

​TQVM

Files:
Reason: