I'm unable to find an alertcondition that meets my needs
If you can't find a suitable condition in the Create Alert dialog, you can always accomplish your goal by coding an indicator in Pine programming language that checks the condition upon its calculation on the chart and lets you select this custom condition when setting up Alerts manually. Such a script should contain the alertcondition function. The function has the following signature:
alertcondition(condition, title, message)
If the condition becomes true, alert triggers. To create an alert based on alertcondition, apply a Pine code with alertcondition to the current chart, open the Create Alert dialog, select the applied Pine code as the main condition for the alert and choose the specific alert condition with the title you've conveyed as an argument to the alertcondition function.