Low at prev high

How would I write a script to use in a watchlist that would
alert me for when the condition happens of a low pivot
finding support at the most recent high pivot, like in the
attached screenshot? I am using the Percent Swing Chart
Overlay to get the pivots.

Hi,

Swings can use offsets to find previous swing top / bottom values. You could use something like this to find the setup:

P1 = PERCENTSWING();
(P1 IsUp) and (SWINGSTART(P1) >= SWINGSTART(P1, OFFSET=3) * 0.98)

You can adjust the range being considered (2% band up and down used here).

DXS:ASX is an example of a code that passed today, which looks similar to your 5min setup.

Ex5

Thanks, Matthew.