You cannot change BarPeriod and expect you system to behave the same way.

I think what you are looking for is TICKS mode.
Check here
http://zorro-project.com/manual/en/mode.htm

Basically just use set(TICKS); to enable