# Scheduled Alerts

Allows you to send an alert signal at a time you specify, useful for closing all open positions at the end of a trading session or before a particular event. The script can be used as a standalone or you can copy and paste the code into your own scripts.

{% embed url="<https://youtube.com/live/Z0Y5quEdKJ0>" %}

* [View on TradingView](https://www.tradingview.com/script/wEYIjdUI-TradersPost-Scheduled-Alert/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.traderspost.io/docs/strategies-and-indicators/example-strategies/scheduled-alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
