Thanks JCL. Yes indeed the manual has details for BarPeriod. Lot more to learn and try. Appreciate your help.