Sequence counter thinkorswim. I have having issues with using the fold function.