Here's a fractal zig zag.
I don't if this could've fit what you needed.
I don't know much about CSMs, this was on mql4.