protected override void Initialize()
{
Add(PeriodType.Minute, 15);
CalculateOnBarClose = false; // not affected?!
}
protected override void OnBarUpdate()
{
if (BarsInProgress==0)
{
Print("M1: "+Time[0]);
}
else if (BarsInProgress==1)
{
Print("M15: "+Time[0]); // or Times[1][0] - no difference
}
}
M1: 07.03.2012 8:15:00
M15: 07.03.2012 8:15:00
M1: 07.03.2012 8:16:00
M1: 07.03.2012 8:17:00
M1: 07.03.2012 8:18:00
M1: 07.03.2012 8:19:00
etc.
Why?
Privider is CQG, demo-account.NT 7.0.1000.9

Comment