> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerts

> Alerts the reader arms and the script fires.

Declared at the top level, armed by the user, fired from handlers. In v1 they fire in the browser while the chart is open.

## alert()

```ts theme={"theme":"github-dark"}
function alert(name: string, options?: {
  message?: string;
  onForming?: boolean;
}): Alert;
```

## Alert

<ResponseField name="fire()" type="(condition: boolean, message?: string): void">
  Fire if the user armed this alert and `condition` is true. At most once per bar.
</ResponseField>

## Next step

Continue with [Colours, text and time](/terminal/reference/utilities).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.