When you apply this script to your chart you must do the following to get alerts.
1. Apply to chart
2. Make sure you are on the 12HR time frame on the stock you want to detect the setup
3. Go to alerts and make a new alert with this script and the specific stock. (it will not work with watchlist because the watchlist feature is bugged, so it has to be a specific stock)
4. On the alert UI make sure you click
Condition - 1-3-1 Levels
(under that you will click 1-3-1 setup alert)
Trigger - Once per bar close
Expiration - open ended
5. Make sure not to touch anything else, the code will automatically detect the stock its tracking.
6. Change notifications to what you prefer.
7. Enjoy, at 8pm EST if there is a valid 1 in a 1-3-1 setup it will notify you and give you the levels you need to chart.