Skip to main content
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()

Alert

(condition: boolean, message?: string): void
Fire if the user armed this alert and condition is true. At most once per bar.

Next step

Continue with Colours, text and time.
Last modified on October 16, 2026