This script will set an alert X mins before the market closes.
This is meant to be added to daily charts (calculations based off of daily bars).
This script can be useful for sending webhooks before the market closes to close open positions or to open new ones.
Simply add it to your daily chart and set up your desired alert (email, webhook, sound, etc.).
You can also change the chart marker to a different shape, color, or location to your preference.
Enjoy this simple alert!