alert_create
Create a local price or indicator alert for an IDX stock using Pine-script-compatible conditions, so the alert fires only when the specified crossover or threshold is actually met.
Instructions
Create a price or indicator alert on an IDX stock, stored on this machine.
The condition uses the SAME grammar as pine_script signals and is evaluated with the same indicator maths, so an alert and the Pine alertcondition for it agree.
Reference a declared series (sma20, sma50, rsi14, macdLine, macdSignal, bbUpper…), a price field (close, high, low, volume, hl2…), or a number. Declare what you reference via overlays/panels — the tool refuses a condition it cannot evaluate rather than storing a rule that silently never fires.
Alerts fire once per bar. Nothing is delivered automatically — alert_check evaluates them; there is no background daemon yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| left | Yes | Series id, price field, or number | |
| name | Yes | What this alert means, e.g. 'RSI oversold' | |
| note | No | Free text for your own reference | |
| right | Yes | ||
| panels | No | Oscillators the condition references | |
| symbol | Yes | IDX ticker, e.g. BBRI | |
| overlays | No | Price series the condition references | |
| cooldown_minutes | No | Minimum minutes between fires. Default 0 (once per bar). |