This indi might be more useful to fellow coders, than to fellow traders, but I thought I'd share it anyway. It's quite simple in that you can specify how many bars before and how many after, to form the fractal.
A regular fractal has the mid-bar higher than the two to the left and the two to the right. But ... what if you wanted only one each side, or perhaps five on one side and two on the other? Well, you get the idea.