Hi,
here is a script I wrote based on Pivot points. It detects HH, HL, LL, LH
the yellow resistances/supports are from a higher timeframe
the fuchsia ones are supports for the current timeframe, it resets when the past Low is too old or it detects a new one
the blue ones are resistances for the current timeframe, it resets when the past High is too old or it detects a new one
Shotoki