The purpose of uniquely identifying and grouping bars is so I can generate a pattern string. I introduced an EA at the beginning of this thread which had three types of bars. (Long, Short, and Doji) those classifiions form a string. I'm trying to expand the number of characters that I can use.