What each alert() frequency permits
The frequency parameter filters executed calls. It does not evaluate a condition for you or change when the script runs.
| Frequency | Eligible call | Consequence |
|---|---|---|
| alert.freq_once_per_bar | First eligible call in a realtime bar; the default | An intrabar notification can outlive a condition that later becomes false. |
| alert.freq_once_per_bar_close | A call executed on the realtime closing update | A condition that was true earlier but is false at close produces no alert. |
| alert.freq_all | Every executed call on the realtime bar | Multiple calls can generate multiple events, subject to platform limits. |