identify same color continuation to ignore range high low

Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 7 in /home/rtt/ on line 77



Hello sir,

do you think these all bars from high to low will make a one bar
Please explain .. Thanks
candlestick chart


video here