Are you setting the BarPeriod?

[Linked Image]