Fractals Analysis

 

Hello y'll.

By any chance, does anyone here have an indicator that:

1. Count how many fractals were plotted on the past X (input) bars.

2. Count how many bars in a row, without any fractals plotted (zero fractals on the past X bars).

Any help would be much appreciated. Thanks in advance.