- Topics: 5
- Replies: 608
- Posts: 613
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.