Hi, new to the forum and first post... I've been working on a script where I need to use the bar number and I was getting some strange results. I coded an iterative variable: def bn = bn[1] + 1; to validate BarNumber(). It turns out that the bn, "hand count" is always 10 more than BarNumber(). Any ideas about this? I checked to see if there were any NaN on close and on bn anby tsimehcla - Trading Discussion