What indicator shows like fractals but with option of choosing 1, 2, or 3 higher highs or lower low please?

 
fractals indicator shows 2 higher highs or lower lows each side of the candle. Im looking for an indicator that has a used defined paramter of 1, 2, or 3 higher highs/ lower lows on each side of the candle to make a 'fractal'. anyone know one or can whip one up? thanks a lot.
 
c3po:
fractals indicator shows 2 higher highs or lower lows each side of the candle. Im looking for an indicator that has a used defined paramter of 1, 2, or 3 higher highs/ lower lows on each side of the candle to make a 'fractal'. anyone know one or can whip one up? thanks a lot.


Look to ZigZag  setting  ExtDept  4,5 higher

think it is coming close to fractals if last extreme is at bar 3     with extdept  4 as choice

Reason: